code: @Override
    public void doInvoke(MessageContext<SAMLObject> messageContext) throws MessageHandlerException {
      if (this.wantAuthnRequestsSigned) {
  
        SAMLObject samlMessage = messageContext.getMessage();
        if (!(samlMessage instanceof AuthnRequest)) {
          log.debug("Inbound message is not an instance of AuthnRequest, skipping evaluation...");
          return;
        }
        if (!isMessageSigned(messageContext)) {
          log.error("AuthnRequest was not signed - this is required by the IdP");
          throw new MessageHandlerException("Inbound AuthnRequest was required to be signed but was not");
        }
      }
      else {
        super.doInvoke(messageContext);
      }
    }
docs: {@inheritDoc}