Class AddNonceHandler
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.handler.AbstractMessageHandler
net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AbstractOIDCAuthenticationRequestActionMessageHandler
net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddNonceHandler
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
A message handler that adds a nonce from a lookup strategy to the authentication request.
The injected nonce generation strategy could generate a null nonce.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.Nonce> Strategy used to generate a nonce. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoInvoke(MessageContext messageContext) voidsetNonceGenerationStrategy(Function<ProfileRequestContext, com.nimbusds.openid.connect.sdk.Nonce> strategy) Set the nonce generation strategy to use.Methods inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AbstractOIDCAuthenticationRequestActionMessageHandler
adapt, adapt, doPreInvoke, getAuthenticationRequest, getHttpServletRequest, getHttpServletRequestSupplier, getProfileConfiguration, getProviderMetadata, lookupProfileRequestContext, setHttpServletRequestSupplier, setProviderMetadataLookupStrategy, setRelyingPartyContextLookupStrategyMethods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, isPreInvokeCalled, setActivationConditionMethods 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 final org.slf4j.Logger logClass logger. -
nonceGenerationStrategy
@Nonnull private Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.Nonce> nonceGenerationStrategyStrategy used to generate a nonce. Could generate a null nonce.
-
-
Constructor Details
-
AddNonceHandler
public AddNonceHandler()Constructor.
-
-
Method Details
-
setNonceGenerationStrategy
public void setNonceGenerationStrategy(@Nonnull Function<ProfileRequestContext, com.nimbusds.openid.connect.sdk.Nonce> strategy) Set the nonce generation strategy to use.- Parameters:
strategy- the strategy
-
doInvoke
- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-