Class CheckMessageStatusHandler

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, MessageHandler

public class CheckMessageStatusHandler extends AbstractMessageHandler
Message handler that raises an exception if a SAML message is a response containing an error status.
Since:
5.2.0
  • Constructor Details

    • CheckMessageStatusHandler

      public CheckMessageStatusHandler()
  • Method Details

    • 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
    • isErrorResponse

      private boolean isErrorResponse(@Nullable Object message)
      Get whether the message is a SAML response containing an error status.
      Parameters:
      message - message to check
      Returns:
      true iff the message is a SAML response containing an error status