Class BrowserToken

java.lang.Object
org.adempiere.webui.util.BrowserToken

public final class BrowserToken extends Object
Class to manage browser token (store using local storage) for authentication
Author:
hengsin
  • Method Details

    • save

      public static void save(MSession session, MUser user)
      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

      public static boolean validateToken(MSession session, MUser user, String token)
      validate a stored client side token is valid
      Parameters:
      session -
      user -
      token -
      Returns:
      true if token is valid