use of org.opensaml.saml.common.SignableSAMLObject in project pac4j by pac4j.
the class Pac4jHTTPRedirectDeflateEncoder method removeSignature.
/**
* Removes the signature from the protocol message.
*
* @param message current message context
*/
protected void removeSignature(SAMLObject message) {
if (message instanceof SignableSAMLObject) {
final SignableSAMLObject signableMessage = (SignableSAMLObject) message;
if (signableMessage.isSigned()) {
log.debug("Removing SAML protocol message signature");
signableMessage.setSignature(null);
}
}
}
Aggregations