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:
net.shibboleth.utilities.java.support.component.Component
,net.shibboleth.utilities.java.support.component.DestructableComponent
,net.shibboleth.utilities.java.support.component.InitializableComponent
,org.opensaml.messaging.handler.MessageHandler
public class PopulateSignatureValidationParametersHandler extends org.opensaml.messaging.handler.AbstractMessageHandler
Handler that resolves and populatesSignatureValidationParameters
on aSecurityParametersContext
created/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<org.opensaml.messaging.context.MessageContext,List<org.opensaml.xmlsec.SignatureValidationConfiguration>>
configurationLookupStrategy
Strategy used to lookup a per-requestSignatureValidationConfiguration
list.private org.slf4j.Logger
log
Class logger.private org.opensaml.xmlsec.SignatureValidationParametersResolver
resolver
Resolver for parameters to store into context.private Function<org.opensaml.messaging.context.MessageContext,org.opensaml.xmlsec.context.SecurityParametersContext>
securityParametersContextLookupStrategy
Strategy used to look up theSecurityParametersContext
to 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 void
doInitialize()
protected void
doInvoke(org.opensaml.messaging.context.MessageContext messageContext)
void
setConfigurationLookupStrategy(Function<org.opensaml.messaging.context.MessageContext,List<org.opensaml.xmlsec.SignatureValidationConfiguration>> strategy)
Set the strategy used to look up a per-requestSignatureValidationConfiguration
list.void
setSecurityParametersContextLookupStrategy(Function<org.opensaml.messaging.context.MessageContext,org.opensaml.xmlsec.context.SecurityParametersContext> strategy)
Set the strategy used to look up theSecurityParametersContext
to set the parameters for.void
setSignatureValidationParametersResolver(org.opensaml.xmlsec.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
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
securityParametersContextLookupStrategy
@Nonnull private Function<org.opensaml.messaging.context.MessageContext,org.opensaml.xmlsec.context.SecurityParametersContext> securityParametersContextLookupStrategy
Strategy used to look up theSecurityParametersContext
to set the parameters for.
-
configurationLookupStrategy
@NonnullAfterInit private Function<org.opensaml.messaging.context.MessageContext,List<org.opensaml.xmlsec.SignatureValidationConfiguration>> configurationLookupStrategy
Strategy used to lookup a per-requestSignatureValidationConfiguration
list.
-
resolver
@NonnullAfterInit private org.opensaml.xmlsec.SignatureValidationParametersResolver resolver
Resolver for parameters to store into context.
-
-
Method Detail
-
setSecurityParametersContextLookupStrategy
public void setSecurityParametersContextLookupStrategy(@Nonnull Function<org.opensaml.messaging.context.MessageContext,org.opensaml.xmlsec.context.SecurityParametersContext> strategy)
Set the strategy used to look up theSecurityParametersContext
to set the parameters for.- Parameters:
strategy
- lookup strategy
-
setConfigurationLookupStrategy
public void setConfigurationLookupStrategy(@Nonnull Function<org.opensaml.messaging.context.MessageContext,List<org.opensaml.xmlsec.SignatureValidationConfiguration>> strategy)
Set the strategy used to look up a per-requestSignatureValidationConfiguration
list.- Parameters:
strategy
- lookup strategy
-
setSignatureValidationParametersResolver
public void setSignatureValidationParametersResolver(@Nonnull org.opensaml.xmlsec.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 net.shibboleth.utilities.java.support.component.ComponentInitializationException
- Overrides:
doInitialize
in classnet.shibboleth.utilities.java.support.component.AbstractInitializableComponent
- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
doInvoke
protected void doInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
- Specified by:
doInvoke
in classorg.opensaml.messaging.handler.AbstractMessageHandler
- Throws:
org.opensaml.messaging.handler.MessageHandlerException
-
-