Enum Class LogoutScope
- All Implemented Interfaces:
Serializable, Comparable<LogoutScope>, Constable
Scope of a logout request.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLog the subject out of every active session for that subject.Log the subject out of the session associated with the current thread / request. -
Method Summary
Modifier and TypeMethodDescriptionstatic LogoutScopeReturns the enum constant of this class with the specified name.static LogoutScope[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CurrentSession
Log the subject out of the session associated with the current thread / request. The most common user-initiated logout — a sign-out button. -
AllSessionsOfSubject
Log the subject out of every active session for that subject. Used for administrative "force-sign-out everywhere" actions or when a session-fixation / password-change event invalidates all existing sessions.
-
-
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
-