Package org.keycloak.models
Enum Class UserSessionModel.SessionPersistenceState
java.lang.Object
java.lang.Enum<UserSessionModel.SessionPersistenceState>
org.keycloak.models.UserSessionModel.SessionPersistenceState
- All Implemented Interfaces:
Serializable
,Comparable<UserSessionModel.SessionPersistenceState>
,Constable
- Enclosing interface:
- UserSessionModel
public static enum UserSessionModel.SessionPersistenceState
extends Enum<UserSessionModel.SessionPersistenceState>
Flag used when creating user session
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSession will be marked as persistent when created and it will be saved into the persistent storage (EG.This userSession will be valid just for the single request. -
Method Summary
Modifier and TypeMethodDescriptionfromString
(String sessionPersistenceString) Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PERSISTENT
Session will be marked as persistent when created and it will be saved into the persistent storage (EG. infinispan cache). This is the default behaviour -
TRANSIENT
This userSession will be valid just for the single request. Hence there won't be real userSession created in the persistent store. Flag can be used for the protocols, which need just "dummy" userSession to be able to run protocolMappers SPI. Example is DockerProtocol or OAuth2 client credentials grant.
-
-
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
-
fromString
-