Class SessionInfo
- java.lang.Object
- 
- org.forgerock.openig.tools.session.SessionInfo
 
- 
 public class SessionInfo extends Object TheSessionInfoclass is responsible to store session info for a given SSO Token.
- 
- 
Constructor SummaryConstructors Constructor Description SessionInfo(String ssoToken, JsonValue rawInfo)Builds a newSessionInfo.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getInfo()Returns the session info asMapfor the given SSO Token if any, ornullif none.InstantgetLatestAccessTime()Returns the latest access time as anInstant.InstantgetMaxIdleExpirationTime()Returns the max idle expiration time as anInstant.InstantgetMaxSessionExpirationTime()Returns the max session expiration time as anInstant.Map<String,String>getProperties()Returns the unmodifiable map of properties bound to the session (can be empty, but nevernull).JsonValuegetRawInfo()Returns the session info for the given SSO Token asJsonValueif any, ornullif none.StringgetRealm()Returns the realm as specified by Access Management.StringgetSessionHandle()Returns the session handle, which may be used to logout of the session.StringgetSsoToken()Returns the SSO Token of thisSessionInfo.StringgetUniversalId()Returns the universal id.StringgetUsername()Returns the user-friendly version of the username.
 
- 
- 
- 
Method Detail- 
getSsoTokenpublic String getSsoToken() Returns the SSO Token of thisSessionInfo.- Returns:
- The SSO Token of this SessionInfo.
 
 - 
getRawInfopublic JsonValue getRawInfo() Returns the session info for the given SSO Token asJsonValueif any, ornullif none.- Returns:
- the session info for the given SSO Token as JsonValueif any, ornullif none.
 
 - 
getInfopublic Map<String,Object> getInfo() Returns the session info asMapfor the given SSO Token if any, ornullif none.- Returns:
- the session info as Mapfor the given SSO Token if any, ornullif none.
 
 - 
getUsernamepublic String getUsername() Returns the user-friendly version of the username. This may be null if the DN is not resident on the SSO token or may be empty if it cannot be obtained from the DN.- Returns:
- the username
 
 - 
getUniversalIdpublic String getUniversalId() Returns the universal id. This is a DN that Access Management uses to uniquely identify the user. It may be null if it cannot be obtained from the SSO token.- Returns:
- the universal id
 
 - 
getRealmpublic String getRealm() Returns the realm as specified by Access Management. This is in a user-friendly slash (/) separated format. This may be null if the DN is not resident on the SSO token.- Returns:
- the realm
 
 - 
getSessionHandlepublic String getSessionHandle() Returns the session handle, which may be used to logout of the session. This may be null if the handle is not available for the session.- Returns:
- the sessionHandle
 
 - 
getLatestAccessTimepublic Instant getLatestAccessTime() Returns the latest access time as anInstant. 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.- Returns:
- the latest access time
 
 - 
getMaxIdleExpirationTimepublic Instant getMaxIdleExpirationTime() Returns the max idle expiration time as anInstant. 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.- Returns:
- the max idle expiration time
 
 - 
getMaxSessionExpirationTimepublic Instant getMaxSessionExpirationTime() Returns the max session expiration time as anInstant. 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.- Returns:
- the max session expiration time
 
 
- 
 
-