Class OIDCAuthenticationResponseContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.plugin.oidc.op.messaging.context.OIDCAuthenticationResponseContext
- All Implemented Interfaces:
Iterable<BaseContext>
Subcontext carrying information to form authentication, token and userinfo responses for relying party. This context
appears as a subcontext of the
MessageContext.-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AccessTokenAccess token.private ClaimsSetThe access token claim set.private ACRthe acr used in response.private AuthorizationCodeAuthorization code.private TokenClaimsSetAuthorization grant (authz code, access token) claims.private InstantAuthentication time of the end user.private StringDPoP Proof JWK thumbprint.private IDTokenClaimsSetThe id token formed.private AttributesMapContainerMapped requested claims from the ID Token set.private AttributesMapContainerMapped requested claims from the Userinfo set.private JWTThe signed/encrypted id token / user info response formed.private URIvalidated redirect uri.private RefreshTokenRefresh token.private OIDCClaimsRequestRequested claims.private StringRequested sub value.private JWTThe request object.private booleanWhether request object validation has failed.private booleanWhether request object has been provided from the PAR endooint.private StringSession identifier.private StringSubject generated for response.private StringSubject type, public or pairwise.private UserInfoThe user info formed.Validated audience values.private ScopeValidated scope values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet access token.Get the access token claims set (used when prepping OAuth-only access tokens).getAcr()Returns the acr meant for response.Get modifiable collection of token audience values.Get authorization code.Get the claims representing the authorization grant, which may be derived from an authorization code, refresh token, or assertion.Authentication time of the end user.Get the DPoP Proof JWK thumbprint.Get theIDTokenClaimsSetobject that will source the ID token.Get the requested claims for the ID Token after they've been reverse-mapped by the registry.Get the requested claims for the Userinfo endpoint after they've been reverse-mapped by the registry.Get the signed/encrypted ID token / UserInfo response JWT.Returns a validated redirect uri for the response.Get refresh token.Get requested claims.Gets requested sub value.Get the request object.getScope()Get validated scope values.Get the session identifier.Gets Name ID generated for response.Gets subject type.Get theUserInfoclaims set that will source the UserInfo response.booleanGet whether request object validation has failed.booleanGet whether request object has been provided from the PAR endooint.voidsetAccessToken(AccessToken token) Set access token.voidsetAccessToken(String token, Duration lifeTime) Set access token.voidsetAccessToken(String token, Duration lifeTime, Scope scope) Set access token.voidsetAccessTokenClaimsSet(ClaimsSet claims) Set the access token claims set (used when prepping OAuth-only access tokens).voidSet acr for response.voidsetAuthorizationCode(String code) Set authorization code.voidSet the claims representing the authorization grant, which may be derived from an authorization code, refresh token, or assertion.voidsetAuthTime(Instant time) Set authentication time of the end user.voidSet the DPoP Proof JWK thumbprint.voidsetIDToken(IDTokenClaimsSet token) Set theIDTokenClaimsSetobject that will source the ID token.voidSet the requested claims for the ID Token after they've been reverse-mapped by the registry.voidSet the requested claims for the Userinfo endpoint after they've been reverse-mapped by the registry.voidsetProcessedToken(JWT token) Set the signed/encrypted ID token / UserInfo response JWT.voidsetRedirectURI(URI uri) Sets a validated redirect uri for the response.voidsetRefreshToken(String token) Set refresh token.voidsetRequestedClaims(OIDCClaimsRequest claims) Set requested claims.voidSet requested sub value.voidsetRequestObject(JWT obj) Set the request object.voidsetRequestObjectFailure(boolean flag) Set whether request object validation has failed.voidsetRequestObjectFromPar(boolean flag) Set whether request object has been provided from the PAR endooint.voidSet validated scope values.voidsetSessionId(String sid) Set the session identifier.voidsetSubject(String generatedSubject) Sets generated subject for the response.voidsetSubjectType(String type) Sets subject type.voidsetUserInfo(UserInfo info) Set theUserInfoclaims set that will source the UserInfo response.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, ensureSubcontext, ensureSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeFromParent, removeSubcontext, removeSubcontext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
idToken
The id token formed. -
requestObject
The request object. -
userInfo
The user info formed. -
accessTokenClaimsSet
The access token claim set. -
processedToken
The signed/encrypted id token / user info response formed. -
acr
the acr used in response. -
redirectURI
validated redirect uri. -
authTime
Authentication time of the end user. -
validatedScope
Validated scope values. -
validatedAudience
Validated audience values. -
requestedSubject
Requested sub value. -
subject
Subject generated for response. Value is set to sub claim. -
subjectType
Subject type, public or pairwise. -
authorizationCode
Authorization code. -
accessToken
Access token. -
refreshToken
Refresh token. -
authorizationGrantClaims
Authorization grant (authz code, access token) claims. -
requestedClaims
Requested claims. -
mappedIdTokenRequestedClaims
Mapped requested claims from the ID Token set. -
mappedUserinfoRequestedClaims
Mapped requested claims from the Userinfo set. -
sessionId
Session identifier. -
requestObjectFromPar
private boolean requestObjectFromParWhether request object has been provided from the PAR endooint. -
requestObjectFailure
private boolean requestObjectFailureWhether request object validation has failed. -
dpopProofJwkThumbprint
DPoP Proof JWK thumbprint.
-
-
Constructor Details
-
OIDCAuthenticationResponseContext
public OIDCAuthenticationResponseContext()Constructor.
-
-
Method Details
-
getRequestedClaims
Get requested claims.- Returns:
- requested claims
-
setRequestedClaims
Set requested claims.- Parameters:
claims- requested claims
-
getMappedIdTokenRequestedClaims
Get the requested claims for the ID Token after they've been reverse-mapped by the registry.- Returns:
- mapped requested claims
-
setMappedIdTokenRequestedClaims
Set the requested claims for the ID Token after they've been reverse-mapped by the registry.- Parameters:
container- the container of mapped claims
-
getMappedUserinfoRequestedClaims
Get the requested claims for the Userinfo endpoint after they've been reverse-mapped by the registry.- Returns:
- mapped requested claims
-
setMappedUserinfoRequestedClaims
Set the requested claims for the Userinfo endpoint after they've been reverse-mapped by the registry.- Parameters:
container- the container of mapped claims
-
getAuthorizationGrantClaimsSet
Get the claims representing the authorization grant, which may be derived from an authorization code, refresh token, or assertion.- Returns:
- token claims
-
setAuthorizationGrantClaimsSet
Set the claims representing the authorization grant, which may be derived from an authorization code, refresh token, or assertion.- Parameters:
claims- token claims
-
getAuthorizationCode
Get authorization code.- Returns:
- authorization code
-
setAuthorizationCode
Set authorization code.- Parameters:
code- String to form authorization code
-
getRequestedSubject
Gets requested sub value.- Returns:
- requested sub value
-
setRequestedSubject
Set requested sub value.- Parameters:
sub- requested sub value.
-
getSubject
Gets Name ID generated for response.- Returns:
- Name ID generated for response
-
setSubject
Sets generated subject for the response.- Parameters:
generatedSubject- subject for the response
-
getSubjectType
Gets subject type.- Returns:
- generated subject type.
-
setSubjectType
Sets subject type.- Parameters:
type- subject type.
-
getScope
Get validated scope values.- Returns:
- validated scope values
-
setScope
Set validated scope values.- Parameters:
scope- scope values
-
getAudience
Get modifiable collection of token audience values.- Returns:
- audience collection
- Since:
- 3.1.0
-
getAuthTime
Authentication time of the end user.- Returns:
- authentication time of the end user. null if has not been set.
-
setAuthTime
Set authentication time of the end user.- Parameters:
time- authentication time.
-
getRedirectURI
Returns a validated redirect uri for the response.- Returns:
- redirect uri.
-
setRedirectURI
Sets a validated redirect uri for the response.- Parameters:
uri- validated redirect uri for the response
-
getAcr
Returns the acr meant for response.- Returns:
- acr
-
setAcr
Set acr for response.- Parameters:
acrValue- for response.
-
getIDToken
Get theIDTokenClaimsSetobject that will source the ID token.- Returns:
- ID token claims set
-
setIDToken
Set theIDTokenClaimsSetobject that will source the ID token.- Parameters:
token- ID token claims set
-
getUserInfo
Get theUserInfoclaims set that will source the UserInfo response.- Returns:
- UserInfo claims set
-
setUserInfo
Set theUserInfoclaims set that will source the UserInfo response.- Parameters:
info- UserInfo claims set
-
getAccessTokenClaimSet
Get the access token claims set (used when prepping OAuth-only access tokens).- Returns:
- access token claims set
- Since:
- 3.1.0
-
setAccessTokenClaimsSet
Set the access token claims set (used when prepping OAuth-only access tokens).- Parameters:
claims- access token claims set- Since:
- 3.1.0
-
getAccessToken
Get access token.- Returns:
- access token
-
setAccessToken
Set access token.- Parameters:
token- String to form access tokenlifeTime- lifetime of the access token
-
setAccessToken
public void setAccessToken(@Nullable String token, @Nonnull Duration lifeTime, @Nullable Scope scope) Set access token.- Parameters:
token- string to form access tokenlifeTime- lifetime of the access tokenscope- scope of the access token- Since:
- 3.1.0
-
setAccessToken
Set access token.- Parameters:
token- the access token- Since:
- 4.2.0
-
getRefreshToken
Get refresh token.- Returns:
- refresh token
-
setRefreshToken
Set refresh token.- Parameters:
token- String to form refresh token
-
getProcessedToken
Get the signed/encrypted ID token / UserInfo response JWT.- Returns:
- ID token / UserInfo response JWT
-
setProcessedToken
Set the signed/encrypted ID token / UserInfo response JWT.- Parameters:
token- ID token / UserInfo response JWT
-
getRequestObject
Get the request object.- Returns:
- the request object
-
setRequestObject
Set the request object. Either by value or fetched by reference.- Parameters:
obj- the request object.
-
getSessionId
Get the session identifier.- Returns:
- session identifier
- Since:
- 3.3.0
-
setSessionId
Set the session identifier.- Parameters:
sid- session identifier- Since:
- 3.3.0
-
isRequestObjectFromPar
public boolean isRequestObjectFromPar()Get whether request object has been provided from the PAR endooint.- Returns:
- true if from the PAR endpoint, false if not
- Since:
- 4.2.0
-
setRequestObjectFromPar
public void setRequestObjectFromPar(boolean flag) Set whether request object has been provided from the PAR endooint.- Parameters:
flag- true if from the PAR endpoint, false if not- Since:
- 4.2.0
-
isRequestObjectFailure
public boolean isRequestObjectFailure()Get whether request object validation has failed.- Returns:
- true if failed, false if not
- Since:
- 4.2.0
-
setRequestObjectFailure
public void setRequestObjectFailure(boolean flag) Set whether request object validation has failed.- Parameters:
flag- true if failed, false if not- Since:
- 4.2.0
-
getDpopProofJwkThumbprint
Get the DPoP Proof JWK thumbprint.- Returns:
- DPoP Proof JWK thumbprint
- Since:
- 4.2.0
-
setDpopProofJwkThumbprint
Set the DPoP Proof JWK thumbprint.- Parameters:
jkt- DPoP Proof JWK thumbprint- Since:
- 4.2.0
-