@Singleton public class AuthenticationSessionStore extends Object
InternalSession.getTimeLeft()
value, after which they will be removed from this store.Constructor and Description |
---|
AuthenticationSessionStore(SessionAccessManager sessionAccessManager) |
Modifier and Type | Method and Description |
---|---|
void |
addSession(InternalSession session) |
InternalSession |
getSession(SessionID sessionID)
Lookup the Session based on its Session ID.
|
void |
promoteSession(SessionID sessionID)
Moves the specified session out of this store and into the persistent store.
|
InternalSession |
removeSession(SessionID sessionID)
There are cases where an authentication session is created but never used.
|
@Inject public AuthenticationSessionStore(SessionAccessManager sessionAccessManager)
public void addSession(InternalSession session)
public InternalSession getSession(SessionID sessionID)
sessionID
- Looks up the InternalSession by its SessionID.public void promoteSession(SessionID sessionID)
sessionID
- Non null sessionID for the session to be promoted.IllegalStateException
- if session not found in the store.public InternalSession removeSession(SessionID sessionID)
sessionID
- Non null SessionID to remove from the store.InternalSession
that was removed.IllegalStateException
- If the session was not found in the store.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.