public enum SessionState extends Enum<SessionState>
The following diagram illustrates the state transitions for a session:
| | | V ---------- invalid | | | |creation (authentication OK) | | |max login time| |destroy V | valid | | | | | | | | logout | | destroy | | max idle time | | max session time | V ---------> destroy
Enum Constant and Description |
---|
DESTROYED
Marks a session as destroyed.
|
INVALID
Marks a session as invalid.
|
VALID
Marks a session as valid.
|
Modifier and Type | Method and Description |
---|---|
static SessionState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SessionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionState INVALID
Sessions start in an INVALID
state.
After successful authentication, sessions can transition to the VALID
state;
alternatively, if authentication times out, the authentication session will transition
to a DESTROYED
state.
public static final SessionState VALID
Sessions can transition to a VALID
state from an INVALID
state.
A VALID
session can transition to a DESTROYED
state when:
public static final SessionState DESTROYED
Sessions can transition to a DESTROYED
state from any other state.
public static SessionState[] values()
for (SessionState c : SessionState.values()) System.out.println(c);
public static SessionState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.