Class SetAuthorizationCodeToResponseContext
java.lang.Object
net.shibboleth.shared.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<AuthorizationRequest>
net.shibboleth.idp.plugin.oidc.op.oauth2.profile.impl.AbstractOAuthAuthorizationRequestAction
net.shibboleth.idp.plugin.oidc.op.oauth2.profile.impl.AbstractOAuthAuthorizationResponseAction
net.shibboleth.idp.plugin.oidc.op.oauth2.profile.impl.SetAuthorizationCodeToResponseContext
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Action that creates a Authorization Code, and sets it to work context
OIDCAuthenticationResponseContext.getAuthorizationCode() located under
InOutOperationContext.getOutboundMessageContext().-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DurationAuthorization code lifetime.private Function<ProfileRequestContext,Duration> Strategy used to obtain the authz code lifetime.private StringCode challenge and the code challenge method stored to authz code.private Function<ProfileRequestContext,String> Strategy used to locate the code challenge.private Function<ProfileRequestContext,String> Strategy used to locate the code challenge method.Strategy used to locate theOIDCAuthenticationResponseConsentContext.private Predicate<ProfileRequestContext>Predicate used to check if consent is enabled with a givenProfileRequestContext.private DataSealerData sealer for handling authorization code.private IdentifierGenerationStrategyThe generator to use.Strategy used to locate theIdentifierGenerationStrategyto use.private Function<ProfileRequestContext,String> Strategy used to obtain the response issuer value.private org.slf4j.LoggerClass logger.private BiFunction<ProfileRequestContext,Map<String, Object>, Map<String, Object>> The strategy used for manipulating the token claims set.private Function<ProfileRequestContext,Nonce> Strategy used to obtain the request nonce.private SubjectContextSubject context.Strategy used to locate theOIDCAuthenticationResponseTokenClaimsContext.private Function<ProfileRequestContext,BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>>> Lookup function to supply strategy bi-function for manipulating token claims set.private booleanThe xmlSafe-flag passed to the identifier generator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidprotected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidSet the strategy used to obtain the authz code lifetime.voidSet the strategy used to locate the Code Challenge of the request.voidSet the strategy used to locate the Code Challenge Method of the request.voidsetConsentEnabledPredicate(Predicate<ProfileRequestContext> predicate) Set the predicate used to check if consent is enabled with a givenProfileRequestContext.voidsetDataSealer(DataSealer sealer) Set the data sealer instance to use.voidsetIdentifierGeneratorLookupStrategy(Function<ProfileRequestContext, IdentifierGenerationStrategy> strategy) Set the strategy used to locate theIdentifierGenerationStrategyto use.voidSet the strategy used to locate the issuer value to use.voidsetOIDCAuthenticationResponseConsentContextLookupStrategy(Function<ProfileRequestContext, OIDCAuthenticationResponseConsentContext> strategy) Set the strategy used to locate theOIDCAuthenticationResponseTokenClaimsContextassociated with a givenProfileRequestContext.voidsetOIDCAuthenticationResponseTokenClaimsContextLookupStrategy(Function<ProfileRequestContext, OIDCAuthenticationResponseTokenClaimsContext> strategy) Set the strategy used to locate theOIDCAuthenticationResponseTokenClaimsContextassociated with a givenProfileRequestContext.voidSet the strategy used to locate the nonce of authentication request.voidsetTokenClaimsSetManipulationStrategyLookupStrategy(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.voidsetXmlSafeIdentifier(boolean flag) Set the xmlSafe-flag passed to the identifier generatorMethods inherited from class net.shibboleth.idp.plugin.oidc.op.oauth2.profile.impl.AbstractOAuthAuthorizationResponseAction
getMetadataContext, getOidcResponseContextMethods inherited from class net.shibboleth.idp.plugin.oidc.op.oauth2.profile.impl.AbstractOAuthAuthorizationRequestAction
getAuthorizationRequestMethods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCRequestAction
getRequestMethods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logClass logger. -
issuerLookupStrategy
Strategy used to obtain the response issuer value. -
dataSealer
Data sealer for handling authorization code. -
idGenerator
The generator to use. -
idGeneratorLookupStrategy
@Nonnull private Function<ProfileRequestContext,IdentifierGenerationStrategy> idGeneratorLookupStrategyStrategy used to locate theIdentifierGenerationStrategyto use. -
authzCodeLifetimeLookupStrategy
Strategy used to obtain the authz code lifetime. -
tokenClaimsContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCAuthenticationResponseTokenClaimsContext> tokenClaimsContextLookupStrategyStrategy used to locate theOIDCAuthenticationResponseTokenClaimsContext. -
consentContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCAuthenticationResponseConsentContext> consentContextLookupStrategyStrategy used to locate theOIDCAuthenticationResponseConsentContext. -
consentEnabledPredicate
Predicate used to check if consent is enabled with a givenProfileRequestContext. -
codeChallengeLookupStrategy
Strategy used to locate the code challenge. -
codeChallengeMethodLookupStrategy
Strategy used to locate the code challenge method. -
tokenClaimsSetManipulationStrategyLookupStrategy
@Nonnull private Function<ProfileRequestContext,BiFunction<ProfileRequestContext, tokenClaimsSetManipulationStrategyLookupStrategyMap<String, Object>, Map<String, Object>>> Lookup function to supply strategy bi-function for manipulating token claims set. -
requestNonceLookupStrategy
Strategy used to obtain the request nonce. -
manipulationStrategy
@Nullable private BiFunction<ProfileRequestContext,Map<String, manipulationStrategyObject>, Map<String, Object>> The strategy used for manipulating the token claims set. -
subjectCtx
Subject context. -
authzCodeLifetime
Authorization code lifetime. -
codeChallenge
Code challenge and the code challenge method stored to authz code. -
xmlSafeIdentifier
private boolean xmlSafeIdentifierThe xmlSafe-flag passed to the identifier generator.
-
-
Constructor Details
-
SetAuthorizationCodeToResponseContext
public SetAuthorizationCodeToResponseContext()Constructor.
-
-
Method Details
-
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
Set the strategy used to locate the issuer value to use.- Parameters:
strategy- lookup strategy
-
setConsentEnabledPredicate
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
-
setXmlSafeIdentifier
public void setXmlSafeIdentifier(boolean flag) Set the xmlSafe-flag passed to the identifier generator- Parameters:
flag- xmlSafe-flag
-
setRequestNonceLookupStrategy
Set the strategy used to locate the nonce of authentication request.- Parameters:
strategy- lookup strategy
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecutein classAbstractOAuthAuthorizationResponseAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction