Interface SessionDataAccessProvider
- All Superinterfaces:
DataAccessProvider
This DataAccessProvider is responsible for storing and maintaining session for the server.
-
Method Summary
Modifier and TypeMethodDescriptionvoidDelete session state matching id.getSessionById(String id) Returns a validSessionmatching the supplied ID.voidinsertSession(Session session) Creates a new Session with given expiration.voidupdateSession(Session session) Update an existing Session with new session data.voidupdateSessionExpiration(String id, Instant expiresAt) Update an existing Session with new session data.Methods inherited from interface se.curity.identityserver.sdk.datasource.DataAccessProvider
isThreadSafe
-
Method Details
-
getSessionById
Returns a validSessionmatching the supplied ID.- Parameters:
id- the ID of the session to search for- Returns:
- the session, or null if no valid session was found
- Since:
- 3.4.0
-
insertSession
Creates a new Session with given expiration.- Parameters:
session- the session insert- Since:
- 3.4.0
-
updateSession
Update an existing Session with new session data.- Parameters:
session- the session to update- Since:
- 3.4.0
-
updateSessionExpiration
Update an existing Session with new session data.- Parameters:
id- id of the session to updateexpiresAt- session time of expiration- Since:
- 3.4.0
-
deleteSessionState
Delete session state matching id.- Parameters:
id- id of the session to delete
-