Class StoreDPoPProofKeyThumbprint
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<com.nimbusds.oauth2.sdk.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.StoreDPoPProofKeyThumbprint
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Stores the dpop_jkt parameter from the incoming authorization request. It's optional by the spec, but it may be
required via profile configuration settings.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,String> Strategy used to locate thumbprint of validated DPoP Proof JWT.private Function<ProfileRequestContext,String> Strategy used to locate the dpop_jkt value.private StringThe JWK thumbprint.private org.slf4j.LoggerClass logger.private Predicate<ProfileRequestContext>Strategy used to determine whether to require dpop_jkt parameter.private booleanWhether dpop_jkt parameter is mandatory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidprotected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidSet the strategy used to locate the dpop_jkt value.voidSet the strategy used to locate the thumbprint of validated DPoP Proof JWT.voidsetRequireDpopJktCondition(Predicate<ProfileRequestContext> condition) Set the condition used to determine whether to require dpop_jkt parameter.Methods 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. -
requireDpopJktCondition
Strategy used to determine whether to require dpop_jkt parameter. -
jktLookupStrategy
Strategy used to locate the dpop_jkt value. -
dpopProofThumbprintLookupStrategy
Strategy used to locate thumbprint of validated DPoP Proof JWT. -
requireJkt
private boolean requireJktWhether dpop_jkt parameter is mandatory. -
jwkThumbprint
The JWK thumbprint.
-
-
Constructor Details
-
StoreDPoPProofKeyThumbprint
public StoreDPoPProofKeyThumbprint()Constructor.
-
-
Method Details
-
setRequireDpopJktCondition
Set the condition used to determine whether to require dpop_jkt parameter.- Parameters:
condition- condition to apply
-
setDpopJktLookupStrategy
Set the strategy used to locate the dpop_jkt value.- Parameters:
strategy- lookup strategy
-
setDpopProofThumbprintLookupStrategy
public void setDpopProofThumbprintLookupStrategy(@Nonnull Function<ProfileRequestContext, String> strategy) Set the strategy used to locate the thumbprint of validated DPoP Proof JWT.- Parameters:
strategy- lookup strategy
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecutein classAbstractOAuthAuthorizationResponseAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-