Class SetAuthorizationCodeToResponseContext
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.profile.action.AbstractProfileAction
-
- org.opensaml.profile.action.AbstractConditionalProfileAction
-
- net.shibboleth.idp.profile.AbstractProfileAction
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCRequestAction<com.nimbusds.openid.connect.sdk.AuthenticationRequest>
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationRequestAction
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationResponseAction
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.SetAuthorizationCodeToResponseContext
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class SetAuthorizationCodeToResponseContext extends AbstractOIDCAuthenticationResponseAction
Action that creates a Authorization Code, and sets it to work contextOIDCAuthenticationResponseContext.getAuthorizationCode()located underInOutOperationContext.getOutboundMessageContext().
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SetAuthorizationCodeToResponseContext()Constructor.
-
Method Summary
-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationResponseAction
getMetadataContext, getOidcResponseContext
-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationRequestAction
getAuthenticationRequest
-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCRequestAction
getRequest
-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
issuerLookupStrategy
@Nonnull private Function<ProfileRequestContext,String> issuerLookupStrategy
Strategy used to obtain the response issuer value.
-
dataSealer
@NonnullAfterInit private DataSealer dataSealer
Data sealer for handling authorization code.
-
idGenerator
@Nullable private IdentifierGenerationStrategy idGenerator
The generator to use.
-
idGeneratorLookupStrategy
@Nonnull private Function<ProfileRequestContext,IdentifierGenerationStrategy> idGeneratorLookupStrategy
Strategy used to locate theIdentifierGenerationStrategyto use.
-
authzCodeLifetimeLookupStrategy
@Nonnull private Function<ProfileRequestContext,Duration> authzCodeLifetimeLookupStrategy
Strategy used to obtain the authz code lifetime.
-
tokenClaimsContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCAuthenticationResponseTokenClaimsContext> tokenClaimsContextLookupStrategy
Strategy used to locate theOIDCAuthenticationResponseTokenClaimsContext.
-
consentContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCAuthenticationResponseConsentContext> consentContextLookupStrategy
Strategy used to locate theOIDCAuthenticationResponseConsentContext.
-
consentEnabledPredicate
@Nonnull private Predicate<ProfileRequestContext> consentEnabledPredicate
Predicate used to check if consent is enabled with a givenProfileRequestContext.
-
codeChallengeLookupStrategy
@Nonnull private Function<ProfileRequestContext,String> codeChallengeLookupStrategy
Strategy used to locate the code challenge.
-
codeChallengeMethodLookupStrategy
@Nonnull private Function<ProfileRequestContext,String> codeChallengeMethodLookupStrategy
Strategy used to locate the code challenge method.
-
tokenClaimsSetManipulationStrategyLookupStrategy
@Nonnull private Function<ProfileRequestContext,BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>> tokenClaimsSetManipulationStrategyLookupStrategy
Lookup function to supply strategy bi-function for manipulating token claims set.
-
manipulationStrategy
@Nullable private BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>> manipulationStrategy
The strategy used for manipulating the token claims set.
-
subjectCtx
@Nullable private net.shibboleth.idp.authn.context.SubjectContext subjectCtx
Subject context.
-
authzCodeLifetime
@Nullable private Duration authzCodeLifetime
Authorization code lifetime.
-
codeChallenge
@Nullable private String codeChallenge
Code challenge and the code challenge method stored to authz code.
-
-
Method Detail
-
setDataSealer
public void setDataSealer(@Nonnull DataSealer sealer)Set the data sealer instance to use.- Parameters:
sealer- data sealer to use
-
setCodeChallengeLookupStrategy
public void setCodeChallengeLookupStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the Code Challenge of the request.- Parameters:
strategy- lookup strategy
-
setCodeChallengeMethodLookupStrategy
public void setCodeChallengeMethodLookupStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the Code Challenge Method of the request.- Parameters:
strategy- lookup strategy
-
setOIDCAuthenticationResponseTokenClaimsContextLookupStrategy
public void setOIDCAuthenticationResponseTokenClaimsContextLookupStrategy(@Nonnull Function<ProfileRequestContext,OIDCAuthenticationResponseTokenClaimsContext> strategy)Set the strategy used to locate theOIDCAuthenticationResponseTokenClaimsContextassociated with a givenProfileRequestContext.- Parameters:
strategy- lookup strategy
-
setOIDCAuthenticationResponseConsentContextLookupStrategy
public void setOIDCAuthenticationResponseConsentContextLookupStrategy(@Nonnull Function<ProfileRequestContext,OIDCAuthenticationResponseConsentContext> strategy)Set the strategy used to locate theOIDCAuthenticationResponseTokenClaimsContextassociated with a givenProfileRequestContext.- Parameters:
strategy- lookup strategy
-
setAuthzCodeLifetimeLookupStrategy
public void setAuthzCodeLifetimeLookupStrategy(@Nonnull Function<ProfileRequestContext,Duration> strategy)Set the strategy used to obtain the authz code lifetime.- Parameters:
strategy- lookup strategy
-
setIdentifierGeneratorLookupStrategy
public void setIdentifierGeneratorLookupStrategy(@Nonnull Function<ProfileRequestContext,IdentifierGenerationStrategy> strategy)Set the strategy used to locate theIdentifierGenerationStrategyto use.- Parameters:
strategy- lookup strategy
-
setIssuerLookupStrategy
public void setIssuerLookupStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the issuer value to use.- Parameters:
strategy- lookup strategy
-
setConsentEnabledPredicate
public void setConsentEnabledPredicate(@Nonnull Predicate<ProfileRequestContext> predicate)Set the predicate used to check if consent is enabled with a givenProfileRequestContext.- Parameters:
predicate- predicate used to check if consent is enabled with a givenProfileRequestContext.
-
setTokenClaimsSetManipulationStrategyLookupStrategy
public void setTokenClaimsSetManipulationStrategyLookupStrategy(@Nonnull Function<ProfileRequestContext,BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>> strategy)Set the lookup function to supply strategy bi-function for manipulating token claims set.- Parameters:
strategy- What to set
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractOIDCAuthenticationResponseAction
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-