public class SessionInfo extends Object
SessionInfo
class is responsible to store session info for a given SSO Token.Constructor and Description |
---|
SessionInfo(String ssoToken,
JsonValue rawInfo)
Builds a new
SessionInfo . |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getInfo()
Returns the session info as
Map for the given SSO Token if any, or null if none. |
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 ). |
JsonValue |
getRawInfo()
Returns the session info for the given SSO Token as
JsonValue if any, or null if none. |
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 |
getSsoToken()
Returns the SSO Token of this
SessionInfo . |
String |
getUniversalId()
Returns the universal id.
|
String |
getUsername()
Returns the user-friendly version of the username.
|
public String getSsoToken()
SessionInfo
.SessionInfo
.public JsonValue getRawInfo()
JsonValue
if any, or null
if none.JsonValue
if any, or null
if none.public Map<String,Object> getInfo()
Map
for the given SSO Token if any, or null
if none.Map
for the given SSO Token if any, or null
if none.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.Copyright 2011-2017 ForgeRock AS.