public class SsoTokenContext extends AbstractContext
SsoTokenContext
could be used to store and retrieve an token.
The SingleSignOnFilter
uses this context to store the token and
its validation information.
data
Constructor and Description |
---|
SsoTokenContext(Context parent,
JsonValue info,
String token,
String loginEndpoint)
Creates a new
SsoTokenContext context with the provided token
and additional validation information such as 'realm', 'uid' and 'authModule'. |
Modifier and Type | Method and Description |
---|---|
JsonValue |
asJsonValue()
Returns the info associated with this context as a
JsonValue . |
static SsoTokenContext |
fromSessionInfo(Context parent,
SessionInfo sessionInfo,
String loginEndpoint)
Create a
SsoTokenContext from a SessionInfo and SSO token. |
Map<String,Object> |
getInfo()
Returns the info associated with this context.
|
String |
getLoginEndpoint()
The login endpoint URI evaluated from
SingleSignOnFilter configuration. |
String |
getValue()
Returns the token associated with this SsoTokenContext context.
|
asContext, containsContext, containsContext, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString
public SsoTokenContext(Context parent, JsonValue info, String token, String loginEndpoint)
SsoTokenContext
context with the provided token
and additional validation information such as 'realm', 'uid' and 'authModule'.parent
- The parent context.info
- The validation information associated with this context to store, not null
.token
- The token associated with this context to store, not null
.loginEndpoint
- The login endpoint URI evaluated from SingleSignOnFilter
configuration, may be null
.public static final SsoTokenContext fromSessionInfo(Context parent, SessionInfo sessionInfo, String loginEndpoint)
SsoTokenContext
from a SessionInfo
and SSO token.parent
- The parent context.sessionInfo
- The validation information associated with this context to store, not null
.loginEndpoint
- The login endpoint URI evaluated from SingleSignOnFilter
configuration, may be null
.SsoTokenContext
public Map<String,Object> getInfo()
public JsonValue asJsonValue()
JsonValue
.JsonValue
.public String getValue()
public String getLoginEndpoint()
SingleSignOnFilter
configuration.Copyright 2011-2017 ForgeRock AS.