Class ValidateDPoPProof
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<Request>
net.shibboleth.idp.plugin.oidc.op.oauth2.profile.impl.ValidateDPoPProof
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,org.springframework.beans.factory.Aware,org.springframework.context.MessageSource,org.springframework.context.MessageSourceAware,org.springframework.webflow.execution.Action
Action validates DPoP Proof JWT if already stored to the context. If validation succeeds, the JWK thumbprint is
stored in the context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ClaimsValidatorThe claims validator to be applied for validating the DPoP proof.private Function<ProfileRequestContext,ClaimsValidator> Lookup for the claims validator to be applied for validating the DPoP proof.private org.slf4j.LoggerClass logger.Lookup for the nonce generator used for generating nonces. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext) protected voidhandleNonceValidationFailure(ProfileRequestContext profileRequestContext) Attach a new nonce to the HTTP servlet response or builds the corresponding event ID to the given PRC if the nonce cannot be generated or attached.voidSet the lookup strategy for the claims validator used for validating the DPoP proof.voidsetDpopProofNonceGeneratorLookupStrategy(Function<ProfileRequestContext, Function<ProfileRequestContext, String>> strategy) Set the lookup strategy for the nonce generator to create nonces to be used in DPoP proof.Methods 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, doInitialize, 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. -
claimsValidatorLookupStrategy
Lookup for the claims validator to be applied for validating the DPoP proof. -
nonceGeneratorLookupStrategy
@Nonnull private Function<ProfileRequestContext,Function<ProfileRequestContext, nonceGeneratorLookupStrategyString>> Lookup for the nonce generator used for generating nonces. -
claimsValidator
The claims validator to be applied for validating the DPoP proof.
-
-
Constructor Details
-
ValidateDPoPProof
public ValidateDPoPProof()Constructor.
-
-
Method Details
-
setClaimsValidatorLookupStrategy
public void setClaimsValidatorLookupStrategy(@Nonnull Function<ProfileRequestContext, ClaimsValidator> strategy) Set the lookup strategy for the claims validator used for validating the DPoP proof.- Parameters:
strategy- What to set
-
setDpopProofNonceGeneratorLookupStrategy
public void setDpopProofNonceGeneratorLookupStrategy(@Nonnull Function<ProfileRequestContext, Function<ProfileRequestContext, String>> strategy) Set the lookup strategy for the nonce generator to create nonces to be used in DPoP proof.- Parameters:
strategy- What to set
-
doPreExecute
- Overrides:
doPreExecutein classAbstractOIDCRequestAction<Request>
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-
handleNonceValidationFailure
Attach a new nonce to the HTTP servlet response or builds the corresponding event ID to the given PRC if the nonce cannot be generated or attached.- Parameters:
profileRequestContext- the context to be populated with error event ID
-