Class AddChannelBindingsHeaderHandler

  • 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 AddChannelBindingsHeaderHandler
    extends org.opensaml.messaging.handler.AbstractMessageHandler
    MessageHandler to add ChannelBindings headers to an outgoing SOAP envelope.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.opensaml.saml.common.messaging.context.ChannelBindingsContext channelBindingsContext
      The ChannelBindingsContext to operate on.
      private Function<org.opensaml.messaging.context.MessageContext,​org.opensaml.saml.common.messaging.context.ChannelBindingsContext> channelBindingsContextLookupStrategy
      Strategy used to locate the ChannelBindingsContext to operate on.
      private org.slf4j.Logger log
      Class logger.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doInvoke​(org.opensaml.messaging.context.MessageContext messageContext)
      protected boolean doPreInvoke​(org.opensaml.messaging.context.MessageContext messageContext)
      void setChannelBindingsContextLookupStrategy​(Function<org.opensaml.messaging.context.MessageContext,​org.opensaml.saml.common.messaging.context.ChannelBindingsContext> strategy)
      Set the strategy used to locate the ChannelBindingsContext to operate on.
      • Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler

        doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
      • Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent

        destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
      • 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.
      • channelBindingsContextLookupStrategy

        @Nonnull
        private Function<org.opensaml.messaging.context.MessageContext,​org.opensaml.saml.common.messaging.context.ChannelBindingsContext> channelBindingsContextLookupStrategy
        Strategy used to locate the ChannelBindingsContext to operate on.
      • channelBindingsContext

        @Nullable
        private org.opensaml.saml.common.messaging.context.ChannelBindingsContext channelBindingsContext
        The ChannelBindingsContext to operate on.
    • Constructor Detail

      • AddChannelBindingsHeaderHandler

        public AddChannelBindingsHeaderHandler()
        Constructor.
    • Method Detail

      • setChannelBindingsContextLookupStrategy

        public void setChannelBindingsContextLookupStrategy​(@Nonnull
                                                            Function<org.opensaml.messaging.context.MessageContext,​org.opensaml.saml.common.messaging.context.ChannelBindingsContext> strategy)
        Set the strategy used to locate the ChannelBindingsContext to operate on.
        Parameters:
        strategy - lookup strategy
      • doPreInvoke

        protected boolean doPreInvoke​(@Nonnull
                                      org.opensaml.messaging.context.MessageContext messageContext)
                               throws org.opensaml.messaging.handler.MessageHandlerException
        Overrides:
        doPreInvoke in class org.opensaml.messaging.handler.AbstractMessageHandler
        Throws:
        org.opensaml.messaging.handler.MessageHandlerException
      • doInvoke

        protected void doInvoke​(@Nonnull
                                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