Interface SessionService
- All Known Implementing Classes:
DefaultSessionService
public interface SessionService
-
Method Summary
Modifier and TypeMethodDescriptionvoidblacklistSession(String userId, String sessionSecret) Blacklists theSessioninstance currently in-use for the specific user id as returned byUser.getId()checkAndRefreshSessionIfNecessary(String sessionSecret) Finds an instance ofSessionbased on the id, as determined bySessionCreation.getSessionSecret().
-
Method Details
-
checkAndRefreshSessionIfNecessary
Finds an instance ofSessionbased 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 theSessioninstance currently in-use for the specific user id as returned byUser.getId()- Parameters:
userId- the user issessionSecret- the session secret
-