Class SessionValidationContext


  • public class SessionValidationContext
    extends Object
    This class handles context data to perform a session validation.
    • Method Detail

      • withSessionKey

        public static SessionValidationContext withSessionKey​(String sessionKey)
        Initializing a session validation context with the specified session key.
        Parameters:
        sessionKey - the session key the context must provide.
        Returns:
        the instance of the new created context.
      • getSessionKey

        public String getSessionKey()
      • skipLastUserAccessTimeRegistering

        public SessionValidationContext skipLastUserAccessTimeRegistering()
        Sets that the last user access time registering must be skipped from the session validation.
        Returns:
        itself.
      • mustSkipLastUserAccessTimeRegistering

        public boolean mustSkipLastUserAccessTimeRegistering()
        Indicates if the last user access time registering must be skipped from the session validation.
        Returns:
        true if the last user access time registering must be skipped, false otherwise.