Package org.forgerock.openig.openam
Class SsoTokenContext
- java.lang.Object
- 
- org.forgerock.services.context.AbstractContext
- 
- org.forgerock.openig.openam.SsoTokenContext
 
 
- 
- All Implemented Interfaces:
- Context
 
 public class SsoTokenContext extends AbstractContext TheSsoTokenContextprovides 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.AbstractContextdata
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonValueasJsonValue()Returns the info associated with this context as aJsonValue.Map<String,Object>getInfo()Returns the session info associated with this context.StringgetLoginEndpoint()The login endpoint URI evaluated fromSingleSignOnFilterconfiguration.StringgetUniversalId()Returns the universalId of the user associated with this session.StringgetUsername()Returns the username of the user associated with this session.StringgetValue()Returns the token associated with this SsoTokenContext context.- 
Methods inherited from class org.forgerock.services.context.AbstractContextas, asContext, containsContext, containsContext, get, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString
 
- 
 
- 
- 
- 
Method Detail- 
getUsernamepublic String getUsername() Returns the username of the user associated with this session.- Returns:
- the username
 
 - 
getUniversalIdpublic String getUniversalId() Returns the universalId of the user associated with this session.- Returns:
- the user's universalId
 
 - 
getInfopublic Map<String,Object> getInfo() Returns the session info associated with this context.- Returns:
- the info JSON as a map.
 
 - 
asJsonValuepublic JsonValue asJsonValue() Returns the info associated with this context as aJsonValue.- Returns:
- the info associated with this context as a JsonValue.
 
 - 
getValuepublic String getValue() Returns the token associated with this SsoTokenContext context.- Returns:
- the token associated with this SsoTokenContext context.
 
 - 
getLoginEndpointpublic String getLoginEndpoint() The login endpoint URI evaluated fromSingleSignOnFilterconfiguration.- Returns:
- the login endpoint associated with this SsoTokenContext context.
 
 
- 
 
-