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
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 anSSOContext
that should exist as a child of this context.Note that the
CdSsoContext
does not seek to validate theJwtClaimsSet
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.
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
Context
name.-
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)
CreateCdSsoContext
for supplied JWT.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
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
Context
name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CdSsoContext
public CdSsoContext(Context parent, String token, JwtClaimsSet claimsSet, String redirectEndpoint, CookieBuilder cookieBuilder)
CreateCdSsoContext
for 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
-
-