Class CheckMessageVersionHandler

  • 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 CheckMessageVersionHandler
    extends org.opensaml.messaging.handler.AbstractMessageHandler
    Handler that checks whether a SAML message has an appropriate version.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean ignoreMissingOrUnrecognized
      Flag controlling handling of missing or unrecognized messages.
      private 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)
      void setIgnoreMissingOrUnrecognized​(boolean flag)
      Set whether to ignore cases where a message does not exist or is not recognized.
      • 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, doInitialize, initialize, isDestroyed, isInitialized
      • Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent

        initialize, isInitialized
    • Field Detail

      • log

        @Nonnull
        private final Logger log
        Class logger.
      • ignoreMissingOrUnrecognized

        private boolean ignoreMissingOrUnrecognized
        Flag controlling handling of missing or unrecognized messages.
    • Constructor Detail

      • CheckMessageVersionHandler

        public CheckMessageVersionHandler()
    • Method Detail

      • setIgnoreMissingOrUnrecognized

        public void setIgnoreMissingOrUnrecognized​(boolean flag)
        Set whether to ignore cases where a message does not exist or is not recognized.
        Parameters:
        flag - flag to set
      • 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