public class SessionInfoContext extends AbstractContext
Context
to store Access Management session info and properties.Modifier and Type | Field and Description |
---|---|
static String |
NAME
The @{code SessionInfoContext}'s name.
|
data
Modifier and Type | Method and Description |
---|---|
JsonValue |
asJsonValue()
Returns the raw information of the
SessionInfo object as JsonValue . |
Map<String,Object> |
getInfo()
Returns the information of the
SessionInfo object. |
Instant |
getLatestAccessTime()
Returns the latest access time as an
Instant . |
Instant |
getMaxIdleExpirationTime()
Returns the max idle expiration time as an
Instant . |
Instant |
getMaxSessionExpirationTime()
Returns the max session expiration time as an
Instant . |
Map<String,String> |
getProperties()
Returns the unmodifiable map of properties bound to the session (can be empty, but
never
null ). |
String |
getRealm()
Returns the realm as specified by Access Management.
|
String |
getSessionHandle()
Returns the session handle, which may be used to logout of the session.
|
String |
getUniversalId()
Returns the universal id.
|
String |
getUsername()
Returns the user-friendly version of the username.
|
asContext, containsContext, containsContext, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString
public static final String NAME
public String getUsername()
public String getUniversalId()
public String getRealm()
public String getSessionHandle()
public Instant getLatestAccessTime()
Instant
. This is the timestamp of when the session was last used.
This may be null if the DN is not resident on the SSO token or the time cannot be obtained from the session.public Instant getMaxIdleExpirationTime()
Instant
. This is the timestamp of when the session would
time out due to no activity. This may be null if the DN is not resident on the SSO token or the time cannot
be obtained from the session.public Instant getMaxSessionExpirationTime()
Instant
. This is the timestamp of when the session would
time out regardless of activity. This may be null if the DN is not resident on the SSO token or the time cannot
be obtained from the session.public Map<String,String> getProperties()
null
).public Map<String,Object> getInfo()
SessionInfo
object.Map
.public JsonValue asJsonValue()
SessionInfo
object as JsonValue
.JsonValue
.Copyright 2011-2017 ForgeRock AS.