public enum SessionCreationPolicy extends java.lang.Enum<SessionCreationPolicy>
| Enum Constant and Description |
|---|
ALWAYS
Always create an
HttpSession |
IF_REQUIRED
Spring Security will only create an
HttpSession if required |
NEVER
Spring Security will never create an
HttpSession, but will use the
HttpSession if it already exists |
STATELESS
Spring Security will never create an
HttpSession and it will never use it
to obtain the SecurityContext |
| Modifier and Type | Method and Description |
|---|---|
static SessionCreationPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SessionCreationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionCreationPolicy ALWAYS
HttpSessionpublic static final SessionCreationPolicy NEVER
HttpSession, but will use the
HttpSession if it already existspublic static final SessionCreationPolicy IF_REQUIRED
HttpSession if requiredpublic static final SessionCreationPolicy STATELESS
HttpSession and it will never use it
to obtain the SecurityContextpublic static SessionCreationPolicy[] values()
for (SessionCreationPolicy c : SessionCreationPolicy.values()) System.out.println(c);
public static SessionCreationPolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null