Package org.adempiere.webui.util
Class BrowserToken
java.lang.Object
org.adempiere.webui.util.BrowserToken
Class to manage browser token (store using local storage) for authentication
- Author:
- hengsin
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
load
(org.zkoss.zk.ui.Component component) load stored client side token for loginstatic void
remove()
remove client side token for loginstatic void
save session and user as client side token for future auto loginstatic boolean
validateToken
(MSession session, MUser user, String token) validate a stored client side token is valid
-
Method Details
-
save
save session and user as client side token for future auto login- Parameters:
session
-user
-
-
remove
public static void remove()remove client side token for login -
load
public static void load(org.zkoss.zk.ui.Component component) load stored client side token for login- Parameters:
component
-
-
validateToken
validate a stored client side token is valid- Parameters:
session
-user
-token
-- Returns:
- true if token is valid
-