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.AbstractContext
data 
 - 
 
- 
Method Summary
All 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.AbstractContext
as, asContext, containsContext, containsContext, get, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getUsername
public String getUsername()
Returns the username of the user associated with this session.- Returns:
 - the username
 
 
- 
getUniversalId
public String getUniversalId()
Returns the universalId of the user associated with this session.- Returns:
 - the user's universalId
 
 
- 
getInfo
public Map<String,Object> getInfo()
Returns the session info associated with this context.- Returns:
 - the info JSON as a map.
 
 
- 
asJsonValue
public JsonValue asJsonValue()
Returns the info associated with this context as aJsonValue.- Returns:
 - the info associated with this context as a 
JsonValue. 
 
- 
getValue
public String getValue()
Returns the token associated with this SsoTokenContext context.- Returns:
 - the token associated with this SsoTokenContext context.
 
 
- 
getLoginEndpoint
public String getLoginEndpoint()
The login endpoint URI evaluated fromSingleSignOnFilterconfiguration.- Returns:
 - the login endpoint associated with this SsoTokenContext context.
 
 
 - 
 
 -