Class SAML2AuthnRequestsSignedSecurityHandler

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, MessageHandler

public class SAML2AuthnRequestsSignedSecurityHandler
extends AbstractMessageHandler
Message handler implementation that enforces the AuthnRequestsSigned flag of SAML 2 metadata element @{link SPSSODescriptor.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Logger.
  • Constructor Details

    • SAML2AuthnRequestsSignedSecurityHandler

      public SAML2AuthnRequestsSignedSecurityHandler()
  • Method Details

    • doInvoke

      public 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
    • isMessageSigned

      protected boolean isMessageSigned​(@Nonnull MessageContext messageContext)
      Determine whether the inbound message is signed.
      Parameters:
      messageContext - the message context being evaluated
      Returns:
      true if the inbound message is signed, otherwise false