public final class SessionSecurityContext extends java.lang.Object implements ExecutionContext.SecurityContext
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SESSION_ID_KEY |
AUTHENTICATION_DATA_ID, AUTHENTICATION_SCHEME_ID
Constructor and Description |
---|
SessionSecurityContext(char[] sessionId) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAllProperties() |
java.lang.Object |
getProperty(java.lang.String key) |
char[] |
getSessionId() |
static SessionSecurityContext |
newInstance(ExecutionContext.SecurityContext context)
Creates a
SessionSecurityContext from the given
ExecutionContext.SecurityContext if possible. |
public static final java.lang.String SESSION_ID_KEY
public SessionSecurityContext(char[] sessionId)
sessionId
- java.lang.IllegalArgumentException
- if sessionId
is
null
or emptypublic java.lang.Object getProperty(java.lang.String key)
getProperty
in interface ExecutionContext.SecurityContext
public java.util.Map<java.lang.String,java.lang.Object> getAllProperties()
getAllProperties
in interface ExecutionContext.SecurityContext
Map
representing all the
propertiespublic char[] getSessionId()
public static SessionSecurityContext newInstance(ExecutionContext.SecurityContext context)
SessionSecurityContext
from the given
ExecutionContext.SecurityContext
if possible. Otherwise null
will be returned.context
- cannot be null.SessionSecurityContext
.