protected void removeSignature(final SAMLObject message) {
        if (message instanceof SignableSAMLObject) {
            SignableXMLObject signableMessage = (SignableSAMLObject) message;
            if (signableMessage.isSigned()) {
                LOGGER.debug("Removing SAML protocol message signature");
                signableMessage.setSignature(null);
            }
        }
    }
Removes the signature from the protocol message.

@param message current message context
pac4j-saml/src/main/java/org/pac4j/saml/transport/Pac4jHTTPRedirectDeflateEncoder.java