Class CheckExpectedIssuer

  • 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 final class CheckExpectedIssuer
    extends org.opensaml.messaging.handler.AbstractMessageHandler
    Message handler that checks that a message context has an issuer.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Function<org.opensaml.messaging.context.MessageContext,​String> expectedIssuerLookupStrategy
      Strategy used to look up the expected issuer associated with the message context.
      private Function<org.opensaml.messaging.context.MessageContext,​String> issuerLookupStrategy
      Strategy used to look up the issuer associated with the message context.
      private org.slf4j.Logger log
      Logger.
    • 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 setExpectedIssuerLookupStrategy​(Function<org.opensaml.messaging.context.MessageContext,​String> strategy)
      Set the strategy used to look up the expected issuer associated with the message context.
      void setIssuerLookupStrategy​(Function<org.opensaml.messaging.context.MessageContext,​String> strategy)
      Set the strategy used to look up the issuer associated with the message 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 interface net.shibboleth.utilities.java.support.component.InitializableComponent

        initialize, isInitialized
    • Field Detail

      • log

        @Nonnull
        private org.slf4j.Logger log
        Logger.
      • issuerLookupStrategy

        @NonnullAfterInit
        private Function<org.opensaml.messaging.context.MessageContext,​String> issuerLookupStrategy
        Strategy used to look up the issuer associated with the message context.
      • expectedIssuerLookupStrategy

        @NonnullAfterInit
        private Function<org.opensaml.messaging.context.MessageContext,​String> expectedIssuerLookupStrategy
        Strategy used to look up the expected issuer associated with the message context.
    • Constructor Detail

      • CheckExpectedIssuer

        public CheckExpectedIssuer()
    • Method Detail

      • setIssuerLookupStrategy

        public void setIssuerLookupStrategy​(@Nonnull
                                            Function<org.opensaml.messaging.context.MessageContext,​String> strategy)
        Set the strategy used to look up the issuer associated with the message context.
        Parameters:
        strategy - lookup strategy
      • setExpectedIssuerLookupStrategy

        public void setExpectedIssuerLookupStrategy​(@Nonnull
                                                    Function<org.opensaml.messaging.context.MessageContext,​String> strategy)
        Set the strategy used to look up the expected issuer associated with the message context.
        Parameters:
        strategy - lookup strategy
      • 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​(@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