public class CdSsoContext extends AbstractContext
Context
implementation to maintain cross-domain SSO properties. This includes the encoded JWT, ForgeRock
session uid and the full claims set. Note that the SSO token is held on an SSOContext
that should exist as
a child of this context.
Note that the CdSsoContext
does not seek to validate the JwtClaimsSet
supplied, other than being
non-null. However, as it uses it to separately retain the session uid, if this is not present then an error is
raised.
Modifier and Type | Field and Description |
---|---|
static String |
NAME
Context name. |
data
Constructor and Description |
---|
CdSsoContext(Context parent,
String token,
JwtClaimsSet claimsSet,
String redirectEndpoint,
CookieBuilder cookieBuilder)
Create
CdSsoContext for supplied JWT. |
Modifier and Type | Method and Description |
---|---|
JwtClaimsSet |
getClaimsSet()
Get a copy of the JWT claims set.
|
CookieBuilder |
getCookieBuilder()
Get the CDSSO authentication cookie builder.
|
String |
getRedirectEndpoint()
Configured redirect endpoint URI used in AM communication.
|
String |
getSessionUid()
Get the ForgeRock session uid.
|
String |
getToken()
Get the encoded JWT.
|
asContext, containsContext, containsContext, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString
public static final String NAME
Context
name.public CdSsoContext(Context parent, String token, JwtClaimsSet claimsSet, String redirectEndpoint, CookieBuilder cookieBuilder)
CdSsoContext
for supplied JWT.parent
- The parent Context
.token
- The JWT token.claimsSet
- The JWT's claims set.redirectEndpoint
- CDSSO redirect endpoint used in AM redirect.cookieBuilder
- CDSSO authentication cookie builder.public String getToken()
public String getSessionUid()
public JwtClaimsSet getClaimsSet()
public String getRedirectEndpoint()
public CookieBuilder getCookieBuilder()
CookieBuilder
Copyright 2011-2017 ForgeRock AS.