Class CheckNoPassiveHandler

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, MessageHandler

public class CheckNoPassiveHandler extends AbstractMessageHandler
Message handler that raises an exception if a SAML message is a response containing the StatusCode.NO_PASSIVE status code.
Since:
5.2.0
  • Constructor Details

    • CheckNoPassiveHandler

      public CheckNoPassiveHandler()
  • 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
    • isNoPassiveResponse

      private boolean isNoPassiveResponse(@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