Package org.forgerock.openig.openam
Class SsoTokenContext
- java.lang.Object
-
- org.forgerock.services.context.AbstractContext
-
- org.forgerock.openig.openam.SsoTokenContext
-
- All Implemented Interfaces:
org.forgerock.services.context.Context
public class SsoTokenContext extends org.forgerock.services.context.AbstractContextAnSsoTokenContextcould be used to store and retrieve an token.The
SingleSignOnFilteruses this context to store the token and its validation information.
-
-
Constructor Summary
Constructors Constructor Description SsoTokenContext(org.forgerock.services.context.Context parent, org.forgerock.json.JsonValue info, String token)Creates a newSsoTokenContextcontext with the provided token and additional validation information such as 'realm', 'uid' and 'authModule'.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.json.JsonValueasJsonValue()Returns the info associated with this context as aJsonValue.Map<String,Object>getInfo()Returns the info associated with this context.StringgetValue()Returns the token associated with this SsoTokenContext context.
-
-
-
Constructor Detail
-
SsoTokenContext
public SsoTokenContext(org.forgerock.services.context.Context parent, org.forgerock.json.JsonValue info, String token)Creates a newSsoTokenContextcontext with the provided token and additional validation information such as 'realm', 'uid' and 'authModule'.- Parameters:
parent- The parent context.info- The validation information associated with this context to store, notnull.token- The token associated with this context to store, notnull.
-
-
Method Detail
-
getInfo
public Map<String,Object> getInfo()
Returns the info associated with this context.- Returns:
- the info JSON as a map.
-
asJsonValue
public org.forgerock.json.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.
-
-