Class PopulateSignatureValidationParametersHandler
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.handler.AbstractMessageHandler
org.opensaml.xmlsec.messaging.impl.PopulateSignatureValidationParametersHandler
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
Handler that resolves and populates
SignatureValidationParameters on a SecurityParametersContext
created/accessed via a lookup function, by default as an immediate child context of the target
MessageContext.-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used to lookup a per-requestSignatureValidationConfigurationlist.private final org.slf4j.LoggerClass logger.Resolver for parameters to store into context.Strategy used to look up theSecurityParametersContextto set the parameters for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voiddoInvoke(MessageContext messageContext) Performs the handler logic.voidsetConfigurationLookupStrategy(Function<MessageContext, List<SignatureValidationConfiguration>> strategy) Set the strategy used to look up a per-requestSignatureValidationConfigurationlist.voidsetSecurityParametersContextLookupStrategy(Function<MessageContext, SecurityParametersContext> strategy) Set the strategy used to look up theSecurityParametersContextto set the parameters for.voidSet the resolver to use for the parameters to store into the context.Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, doPreInvoke, getActivationCondition, getLogPrefix, invoke, isPreInvokeCalled, setActivationConditionMethods 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 final org.slf4j.Logger logClass logger. -
securityParametersContextLookupStrategy
@Nonnull private Function<MessageContext,SecurityParametersContext> securityParametersContextLookupStrategyStrategy used to look up theSecurityParametersContextto set the parameters for. -
configurationLookupStrategy
@NonnullAfterInit private Function<MessageContext,List<SignatureValidationConfiguration>> configurationLookupStrategyStrategy used to lookup a per-requestSignatureValidationConfigurationlist. -
resolver
Resolver for parameters to store into context.
-
-
Constructor Details
-
PopulateSignatureValidationParametersHandler
public PopulateSignatureValidationParametersHandler()Constructor.
-
-
Method Details
-
setSecurityParametersContextLookupStrategy
public void setSecurityParametersContextLookupStrategy(@Nonnull Function<MessageContext, SecurityParametersContext> strategy) Set the strategy used to look up theSecurityParametersContextto set the parameters for.- Parameters:
strategy- lookup strategy
-
setConfigurationLookupStrategy
public void setConfigurationLookupStrategy(@Nonnull Function<MessageContext, List<SignatureValidationConfiguration>> strategy) Set the strategy used to look up a per-requestSignatureValidationConfigurationlist.- Parameters:
strategy- lookup strategy
-
setSignatureValidationParametersResolver
public void setSignatureValidationParametersResolver(@Nonnull SignatureValidationParametersResolver newResolver) Set the resolver to use for the parameters to store into the context.- Parameters:
newResolver- resolver to use
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doInvoke
Performs the handler logic.- Specified by:
doInvokein classAbstractMessageHandler- Parameters:
messageContext- the message context on which to invoke the handler- Throws:
MessageHandlerException- if there is an error invoking the handler on the message context
-