Package org.forgerock.openig.openam
Class CdSsoContext
- java.lang.Object
 - 
- org.forgerock.services.context.AbstractContext
 - 
- org.forgerock.openig.openam.CdSsoContext
 
 
 
- 
- All Implemented Interfaces:
 Context
public class CdSsoContext extends AbstractContext
Contextimplementation 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 anSSOContextthat should exist as a child of this context.Note that the
CdSsoContextdoes not seek to validate theJwtClaimsSetsupplied, 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. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringNAMEContextname.- 
Fields inherited from class org.forgerock.services.context.AbstractContext
data 
 - 
 
- 
Constructor Summary
Constructors Constructor Description CdSsoContext(Context parent, String token, JwtClaimsSet claimsSet, String redirectEndpoint, CookieBuilder cookieBuilder)CreateCdSsoContextfor supplied JWT. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JwtClaimsSetgetClaimsSet()Get a copy of the JWT claims set.CookieBuildergetCookieBuilder()Get the CDSSO authentication cookie builder.StringgetRedirectEndpoint()Configured redirect endpoint URI used in AM communication.StringgetSessionUid()Get the ForgeRock session uid.StringgetToken()Get the encoded JWT.- 
Methods inherited from class org.forgerock.services.context.AbstractContext
as, asContext, containsContext, containsContext, get, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString 
 - 
 
 - 
 
- 
- 
Field Detail
- 
NAME
public static final String NAME
Contextname.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
CdSsoContext
public CdSsoContext(Context parent, String token, JwtClaimsSet claimsSet, String redirectEndpoint, CookieBuilder cookieBuilder)
CreateCdSsoContextfor supplied JWT.- Parameters:
 parent- The parentContext.token- The JWT token.claimsSet- The JWT's claims set.redirectEndpoint- CDSSO redirect endpoint used in AM redirect.cookieBuilder- CDSSO authentication cookie builder.
 
 - 
 
- 
Method Detail
- 
getToken
public String getToken()
Get the encoded JWT.- Returns:
 - The encoded JWT.
 
 
- 
getSessionUid
public String getSessionUid()
Get the ForgeRock session uid.- Returns:
 - the session uid.
 
 
- 
getClaimsSet
public JwtClaimsSet getClaimsSet()
Get a copy of the JWT claims set.- Returns:
 - The JWT claims set
 
 
- 
getRedirectEndpoint
public String getRedirectEndpoint()
Configured redirect endpoint URI used in AM communication.- Returns:
 - the redirect endpoint URI
 
 
- 
getCookieBuilder
public CookieBuilder getCookieBuilder()
Get the CDSSO authentication cookie builder.- Returns:
 - a 
CookieBuilder 
 
 - 
 
 -