Class SessionValidationContext
- java.lang.Object
-
- org.silverpeas.core.security.session.SessionValidationContext
-
public class SessionValidationContext extends Object
This class handles context data to perform a session validation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSessionKey()
boolean
mustSkipLastUserAccessTimeRegistering()
Indicates if the last user access time registering must be skipped from the session validation.SessionValidationContext
skipLastUserAccessTimeRegistering()
Sets that the last user access time registering must be skipped from the session validation.static SessionValidationContext
withSessionKey(String sessionKey)
Initializing a session validation context with the specified session key.
-
-
-
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.
-
-