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.
      flag - flag to set
    • doInvoke

      protected void doInvoke​(@Nonnull MessageContext messageContext) throws MessageHandlerException
      Performs the handler logic.
      Specified by:
      doInvoke in class AbstractMessageHandler
      messageContext - the message context on which to invoke the handler
      MessageHandlerException - if there is an error invoking the handler on the message context