Class CheckMessageVersionHandler

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, MessageHandler

public class CheckMessageVersionHandler
extends AbstractMessageHandler
Handler that checks whether a SAML message has an appropriate version.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • ignoreMissingOrUnrecognized

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

    • CheckMessageVersionHandler

      public CheckMessageVersionHandler()
  • Method Details

    • 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 MessageContext messageContext) throws MessageHandlerException
      Performs the handler logic.
      Specified by:
      doInvoke in class AbstractMessageHandler
      Parameters:
      messageContext - the message context on which to invoke the handler
      Throws:
      MessageHandlerException - if there is an error invoking the handler on the message context