Interface SessionService

All Known Implementing Classes:
DefaultSessionService

public interface SessionService
  • Method Details

    • checkAndRefreshSessionIfNecessary

      Session checkAndRefreshSessionIfNecessary(String sessionSecret)
      Finds an instance of Session based on the id, as determined by SessionCreation.getSessionSecret(). In addition to performing a check for a valid Session, this will reset the expiry of the Session.
      Parameters:
      sessionSecret - the Session identifier
      Returns:
      the Session, never null. Throws the appropriate exception if session isn't found.
    • blacklistSession

      void blacklistSession(String userId, String sessionSecret)
      Blacklists the Session instance currently in-use for the specific user id as returned by User.getId()
      Parameters:
      userId - the user is
      sessionSecret - the session secret