Class AuthAction.InMemorySessionDao

java.lang.Object
io.inversion.action.security.AuthAction.InMemorySessionDao
All Implemented Interfaces:
AuthAction.SessionDao
Enclosing class:
AuthAction

public static class AuthAction.InMemorySessionDao extends Object implements AuthAction.SessionDao
  • Field Details

    • sessionExp

      protected long sessionExp
    • sessionUpdate

      protected long sessionUpdate
    • sessionMax

      protected int sessionMax
    • cache

      protected Map<String,User> cache
  • Constructor Details

    • InMemorySessionDao

      protected InMemorySessionDao()
    • InMemorySessionDao

      public InMemorySessionDao(int sessionMax)
  • Method Details

    • get

      public User get(String sessionKey)
      Specified by:
      get in interface AuthAction.SessionDao
    • doGet

      protected User doGet(String sessionKey)
      Override me to change out map/cache implementation
      Parameters:
      sessionKey - the session id of the user
      Returns:
      the users if found
    • post

      public String post(User user)
      Specified by:
      post in interface AuthAction.SessionDao
    • put

      public void put(String sessionKey, User user)
      Specified by:
      put in interface AuthAction.SessionDao
    • doPut

      protected void doPut(String sessionKey, User user)
      Override me to change out map/cache implementation
      Parameters:
      sessionKey - the users session id
      user - the user to store against the sessionKey
    • delete

      public void delete(String sessionKey)
      Specified by:
      delete in interface AuthAction.SessionDao
    • doDelete

      protected void doDelete(String sessionKey)
      Override me to change out map/cache implementation
      Parameters:
      sessionKey - the session to end
    • newSessionId

      protected String newSessionId()
    • withSessionUpdate

      public AuthAction.SessionDao withSessionUpdate(long sessionUpdate)
    • withSessionMax

      public AuthAction.SessionDao withSessionMax(int sessionMax)
    • withSessionExp

      public AuthAction.SessionDao withSessionExp(long sessionExp)