Package io.inversion.action.security
Class AuthAction.InMemorySessionDao
java.lang.Object
io.inversion.action.security.AuthAction.InMemorySessionDao
- All Implemented Interfaces:
AuthAction.SessionDao
- Enclosing class:
AuthAction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected intprotected long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidOverride me to change out map/cache implementationprotected UserOverride me to change out map/cache implementationprotected voidOverride me to change out map/cache implementationprotected StringvoidwithSessionExp(long sessionExp) withSessionMax(int sessionMax) withSessionUpdate(long sessionUpdate)
-
Field Details
-
sessionExp
protected long sessionExp -
sessionUpdate
protected long sessionUpdate -
sessionMax
protected int sessionMax -
cache
-
-
Constructor Details
-
InMemorySessionDao
protected InMemorySessionDao() -
InMemorySessionDao
public InMemorySessionDao(int sessionMax)
-
-
Method Details
-
get
- Specified by:
getin interfaceAuthAction.SessionDao
-
doGet
Override me to change out map/cache implementation- Parameters:
sessionKey- the session id of the user- Returns:
- the users if found
-
post
- Specified by:
postin interfaceAuthAction.SessionDao
-
put
- Specified by:
putin interfaceAuthAction.SessionDao
-
doPut
Override me to change out map/cache implementation- Parameters:
sessionKey- the users session iduser- the user to store against the sessionKey
-
delete
- Specified by:
deletein interfaceAuthAction.SessionDao
-
doDelete
Override me to change out map/cache implementation- Parameters:
sessionKey- the session to end
-
newSessionId
-
withSessionUpdate
-
withSessionMax
-
withSessionExp
-