Package org.forgerock.openig.openam
Class CdSsoContext
java.lang.Object
org.forgerock.services.context.AbstractContext
org.forgerock.openig.openam.CdSsoContext
- All Implemented Interfaces:
Context
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.
-
Field Summary
Fields inherited from class org.forgerock.services.context.AbstractContext
data
-
Constructor Summary
ConstructorDescriptionCdSsoContext
(Context parent, String token, JwtClaimsSet claimsSet, String redirectEndpoint, org.forgerock.openig.http.protocol.CookieBuilder cookieBuilder) CreateCdSsoContext
for supplied JWT. -
Method Summary
Modifier and TypeMethodDescriptionGet a copy of the JWT claims set.org.forgerock.openig.http.protocol.CookieBuilder
Get the CDSSO authentication cookie builder.Configured redirect endpoint URI used in AM communication.Get the ForgeRock session uid.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 Details
-
NAME
Context
name.- See Also:
-
-
Constructor Details
-
CdSsoContext
public CdSsoContext(Context parent, String token, JwtClaimsSet claimsSet, String redirectEndpoint, org.forgerock.openig.http.protocol.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 Details
-
getToken
Get the encoded JWT.- Returns:
- The encoded JWT.
-
getSessionUid
Get the ForgeRock session uid.- Returns:
- the session uid.
-
getClaimsSet
Get a copy of the JWT claims set.- Returns:
- The JWT claims set
-
getRedirectEndpoint
Configured redirect endpoint URI used in AM communication.- Returns:
- the redirect endpoint URI
-
getCookieBuilder
public org.forgerock.openig.http.protocol.CookieBuilder getCookieBuilder()Get the CDSSO authentication cookie builder.- Returns:
- a
CookieBuilder
-