public static final class SessionCatalog.SessionContext
extends java.lang.Object
Constructor and Description |
---|
SessionContext(java.lang.String sessionId,
java.lang.String identity,
java.util.Map<java.lang.String,java.lang.String> credentials,
java.util.Map<java.lang.String,java.lang.String> properties) |
SessionContext(java.lang.String sessionId,
java.lang.String identity,
java.util.Map<java.lang.String,java.lang.String> credentials,
java.util.Map<java.lang.String,java.lang.String> properties,
java.lang.Object wrappedIdentity) |
Modifier and Type | Method and Description |
---|---|
static SessionCatalog.SessionContext |
createEmpty() |
java.util.Map<java.lang.String,java.lang.String> |
credentials()
Returns the session's credential map.
|
java.lang.String |
identity()
Returns a string that identifies the current user or principal.
|
java.util.Map<java.lang.String,java.lang.String> |
properties()
Returns a map of properties currently set for the session.
|
java.lang.String |
sessionId()
Returns a string that identifies this session.
|
java.lang.Object |
wrappedIdentity()
Returns the opaque wrapped identity object.
|
public SessionContext(java.lang.String sessionId, java.lang.String identity, java.util.Map<java.lang.String,java.lang.String> credentials, java.util.Map<java.lang.String,java.lang.String> properties)
public SessionContext(java.lang.String sessionId, java.lang.String identity, java.util.Map<java.lang.String,java.lang.String> credentials, java.util.Map<java.lang.String,java.lang.String> properties, java.lang.Object wrappedIdentity)
public static SessionCatalog.SessionContext createEmpty()
public java.lang.String sessionId()
This can be used for caching state within a session.
public java.lang.String identity()
This identity cannot change for a given session ID.
public java.util.Map<java.lang.String,java.lang.String> credentials()
This cannot change for a given session ID.
public java.util.Map<java.lang.String,java.lang.String> properties()
public java.lang.Object wrappedIdentity()