Enum Class SessionStatus
- All Implemented Interfaces:
Serializable, Comparable<SessionStatus>, Constable
Lifecycle state of a
SessionRecord.
Sessions move through this enum in the following typical progression:
ACTIVE --(idle / absolute timeout)--> EXPIRED ACTIVE --(logout / admin revoke)----> REVOKEDBoth terminal states are not deleted from the store immediately; they are kept around until a retention window passes so audit queries can still see them.
Adapters consult isActive() to decide whether a session
is admissible for a request. Terminal states never become active
again — re-authentication produces a new SessionRecord with
a fresh SessionId.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanisActive()Returnstrueonly forACTIVE.static SessionStatusReturns the enum constant of this class with the specified name.static SessionStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
Session is open and admissible. -
EXPIRED
Session was terminated by an idle or absolute timeout. -
REVOKED
Session was terminated explicitly by logout or an admin revoke.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isActive
-