Interface SessionService
- All Known Implementing Classes:
DefaultSessionService
public interface SessionService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
blacklistSession
(String userId, String sessionSecret) Blacklists theSession
instance currently in-use for the specific user id as returned byUser.getId()
checkAndRefreshSessionIfNecessary
(String sessionSecret) Finds an instance ofSession
based on the id, as determined bySessionCreation.getSessionSecret()
.
-
Method Details
-
checkAndRefreshSessionIfNecessary
Finds an instance ofSession
based on the id, as determined bySessionCreation.getSessionSecret()
. In addition to performing a check for a validSession
, this will reset the expiry of theSession
. -
blacklistSession
Blacklists theSession
instance currently in-use for the specific user id as returned byUser.getId()
- Parameters:
userId
- the user issessionSecret
- the session secret
-