Class CheckMandatoryAuthentication

  • 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 CheckMandatoryAuthentication
    extends org.opensaml.messaging.handler.AbstractMessageHandler
    Message handler that checks that a message context is authenticated.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Function<org.opensaml.messaging.context.MessageContext,​Boolean> authenticationLookupStrategy
      Strategy used to look up the authentication state associated with the message context.
    • 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 setAuthenticationLookupStrategy​(Function<org.opensaml.messaging.context.MessageContext,​Boolean> strategy)
      Set the strategy used to look up the authentication state 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

      • authenticationLookupStrategy

        @NonnullAfterInit
        private Function<org.opensaml.messaging.context.MessageContext,​Boolean> authenticationLookupStrategy
        Strategy used to look up the authentication state associated with the message context.
    • Constructor Detail

      • CheckMandatoryAuthentication

        public CheckMandatoryAuthentication()
    • Method Detail

      • setAuthenticationLookupStrategy

        public void setAuthenticationLookupStrategy​(@Nonnull
                                                    Function<org.opensaml.messaging.context.MessageContext,​Boolean> strategy)
        Set the strategy used to look up the authentication state 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