Package org.forgerock.openig.openam
Class SsoTokenContext
java.lang.Object
org.forgerock.services.context.AbstractContext
org.forgerock.openig.openam.SsoTokenContext
- All Implemented Interfaces:
Context
The
SsoTokenContext
provides access to the token and user information related to this session.
It is used by the SingleSignOnFilter
.
-
Field Summary
Fields inherited from class org.forgerock.services.context.AbstractContext
data
-
Method Summary
Modifier and TypeMethodDescriptionReturns the info associated with this context as aJsonValue
.getInfo()
Returns the session info associated with this context.The login endpoint URI evaluated fromSingleSignOnFilter
configuration.Returns the universalId of the user associated with this session.Returns the username of the user associated with this session.getValue()
Returns the token associated with this SsoTokenContext context.Methods inherited from class org.forgerock.services.context.AbstractContext
as, asContext, containsContext, containsContext, get, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString
-
Method Details
-
getUsername
Returns the username of the user associated with this session.- Returns:
- the username
-
getUniversalId
Returns the universalId of the user associated with this session.- Returns:
- the user's universalId
-
getInfo
Returns the session info associated with this context.- Returns:
- the info JSON as a map.
-
asJsonValue
Returns the info associated with this context as aJsonValue
.- Returns:
- the info associated with this context as a
JsonValue
.
-
getValue
Returns the token associated with this SsoTokenContext context.- Returns:
- the token associated with this SsoTokenContext context.
-
getLoginEndpoint
The login endpoint URI evaluated fromSingleSignOnFilter
configuration.- Returns:
- the login endpoint associated with this SsoTokenContext context.
-