Class PopulateDecryptionParametersHandler
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.handler.AbstractMessageHandler
org.nuxeo.ecm.platform.auth.saml.processor.handler.PopulateDecryptionParametersHandler
- All Implemented Interfaces:
net.shibboleth.shared.component.Component,net.shibboleth.shared.component.DestructableComponent,net.shibboleth.shared.component.InitializableComponent,org.opensaml.messaging.handler.MessageHandler
public class PopulateDecryptionParametersHandler
extends org.opensaml.messaging.handler.AbstractMessageHandler
- Since:
- 2023.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Function<org.opensaml.messaging.context.MessageContext, List<org.opensaml.xmlsec.DecryptionConfiguration>> Strategy used to lookup a per-requestDecryptionConfigurationlist.protected org.opensaml.xmlsec.DecryptionParametersResolverResolver for parameters to store into context.protected Function<org.opensaml.messaging.context.MessageContext, org.opensaml.xmlsec.context.SecurityParametersContext> Strategy used to look up theSecurityParametersContextto set the parameters for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voiddoInvoke(org.opensaml.messaging.context.MessageContext messageContext) voidsetConfigurationLookupStrategy(Function<org.opensaml.messaging.context.MessageContext, List<org.opensaml.xmlsec.DecryptionConfiguration>> strategy) Set the strategy used to look up a per-requestDecryptionConfigurationlist.voidsetDecryptionParametersResolver(org.opensaml.xmlsec.DecryptionParametersResolver newResolver) Set the resolver to use for the parameters to store into the context.voidsetSecurityParametersContextLookupStrategy(Function<org.opensaml.messaging.context.MessageContext, org.opensaml.xmlsec.context.SecurityParametersContext> strategy) Set the strategy used to look up theSecurityParametersContextto set the parameters for.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
-
securityParametersContextLookupStrategy
protected Function<org.opensaml.messaging.context.MessageContext,org.opensaml.xmlsec.context.SecurityParametersContext> securityParametersContextLookupStrategyStrategy used to look up theSecurityParametersContextto set the parameters for. -
configurationLookupStrategy
protected Function<org.opensaml.messaging.context.MessageContext,List<org.opensaml.xmlsec.DecryptionConfiguration>> configurationLookupStrategyStrategy used to lookup a per-requestDecryptionConfigurationlist. -
resolver
protected org.opensaml.xmlsec.DecryptionParametersResolver resolverResolver for parameters to store into context.
-
-
Constructor Details
-
PopulateDecryptionParametersHandler
public PopulateDecryptionParametersHandler()Constructor.
-
-
Method Details
-
setSecurityParametersContextLookupStrategy
public void setSecurityParametersContextLookupStrategy(Function<org.opensaml.messaging.context.MessageContext, org.opensaml.xmlsec.context.SecurityParametersContext> strategy) Set the strategy used to look up theSecurityParametersContextto set the parameters for.- Parameters:
strategy- lookup strategy
-
setConfigurationLookupStrategy
public void setConfigurationLookupStrategy(Function<org.opensaml.messaging.context.MessageContext, List<org.opensaml.xmlsec.DecryptionConfiguration>> strategy) Set the strategy used to look up a per-requestDecryptionConfigurationlist.- Parameters:
strategy- lookup strategy
-
setDecryptionParametersResolver
public void setDecryptionParametersResolver(org.opensaml.xmlsec.DecryptionParametersResolver 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.shared.component.ComponentInitializationException- Overrides:
doInitializein classnet.shibboleth.shared.component.AbstractInitializableComponent- Throws:
net.shibboleth.shared.component.ComponentInitializationException
-
doInvoke
protected void doInvoke(org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException - Specified by:
doInvokein classorg.opensaml.messaging.handler.AbstractMessageHandler- Throws:
org.opensaml.messaging.handler.MessageHandlerException
-