Class PopulateSignatureValidationParametersHandler
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- org.opensaml.xmlsec.messaging.impl.PopulateSignatureValidationParametersHandler
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
public class PopulateSignatureValidationParametersHandler extends AbstractMessageHandler
Handler that resolves and populatesSignatureValidationParameterson aSecurityParametersContextcreated/accessed via a lookup function, by default as an immediate child context of the targetMessageContext.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<MessageContext,List<SignatureValidationConfiguration>>configurationLookupStrategyStrategy used to lookup a per-requestSignatureValidationConfigurationlist.private org.slf4j.LoggerlogClass logger.private SignatureValidationParametersResolverresolverResolver for parameters to store into context.private Function<MessageContext,SecurityParametersContext>securityParametersContextLookupStrategyStrategy used to look up theSecurityParametersContextto set the parameters for.
-
Constructor Summary
Constructors Constructor Description PopulateSignatureValidationParametersHandler()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()protected voiddoInvoke(MessageContext messageContext)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.voidsetSignatureValidationParametersResolver(SignatureValidationParametersResolver newResolver)Set 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, setActivationCondition
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
securityParametersContextLookupStrategy
@Nonnull private Function<MessageContext,SecurityParametersContext> securityParametersContextLookupStrategy
Strategy used to look up theSecurityParametersContextto set the parameters for.
-
configurationLookupStrategy
@NonnullAfterInit private Function<MessageContext,List<SignatureValidationConfiguration>> configurationLookupStrategy
Strategy used to lookup a per-requestSignatureValidationConfigurationlist.
-
resolver
@NonnullAfterInit private SignatureValidationParametersResolver resolver
Resolver for parameters to store into context.
-
-
Method Detail
-
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
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doInvoke
protected void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
-