Class PopulateDecryptionParametersHandler

java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
org.opensaml.messaging.handler.AbstractMessageHandler
org.nuxeo.ecm.platform.auth.saml.processor.handler.PopulateDecryptionParametersHandler
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 PopulateDecryptionParametersHandler extends org.opensaml.messaging.handler.AbstractMessageHandler
Since:
2023.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Function<org.opensaml.messaging.context.MessageContext,List<org.opensaml.xmlsec.DecryptionConfiguration>>
    Strategy used to lookup a per-request DecryptionConfiguration list.
    protected org.opensaml.xmlsec.DecryptionParametersResolver
    Resolver for parameters to store into context.
    protected Function<org.opensaml.messaging.context.MessageContext,org.opensaml.xmlsec.context.SecurityParametersContext>
    Strategy used to look up the SecurityParametersContext to set the parameters for.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
    doInvoke(org.opensaml.messaging.context.MessageContext messageContext)
     
    void
    setConfigurationLookupStrategy(Function<org.opensaml.messaging.context.MessageContext,List<org.opensaml.xmlsec.DecryptionConfiguration>> strategy)
    Set the strategy used to look up a per-request DecryptionConfiguration list.
    void
    setDecryptionParametersResolver(org.opensaml.xmlsec.DecryptionParametersResolver newResolver)
    Set the resolver to use for the parameters to store into the context.
    void
    setSecurityParametersContextLookupStrategy(Function<org.opensaml.messaging.context.MessageContext,org.opensaml.xmlsec.context.SecurityParametersContext> strategy)
    Set the strategy used to look up the SecurityParametersContext to set the parameters for.

    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 Details

    • securityParametersContextLookupStrategy

      protected Function<org.opensaml.messaging.context.MessageContext,org.opensaml.xmlsec.context.SecurityParametersContext> securityParametersContextLookupStrategy
      Strategy used to look up the SecurityParametersContext to set the parameters for.
    • configurationLookupStrategy

      protected Function<org.opensaml.messaging.context.MessageContext,List<org.opensaml.xmlsec.DecryptionConfiguration>> configurationLookupStrategy
      Strategy used to lookup a per-request DecryptionConfiguration list.
    • resolver

      protected org.opensaml.xmlsec.DecryptionParametersResolver resolver
      Resolver 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 the SecurityParametersContext to 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-request DecryptionConfiguration list.
      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.utilities.java.support.component.ComponentInitializationException
      Overrides:
      doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
      Throws:
      net.shibboleth.utilities.java.support.component.ComponentInitializationException
    • doInvoke

      protected void doInvoke(org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
      Specified by:
      doInvoke in class org.opensaml.messaging.handler.AbstractMessageHandler
      Throws:
      org.opensaml.messaging.handler.MessageHandlerException