/** * Adds a new <code>SignatureConfirmation</code> to a soap envelope. * * A complete <code>SignatureConfirmation</code> is constructed and added * to the <code>wsse:Security</code> header. * * @param doc The SOAP envelope as W3C document * @param sigVal the Signature value. This will be the content of the "Value" attribute. * @param secHeader The security header that holds the Signature element. * @return Document with SignatureConfirmation added */ public Document build(Document doc, byte[] sigVal, WSSecHeader secHeader) { log.debug("Begin add signature confirmation..."); signatureValue = sigVal; prepare(doc); prependToHeader(secHeader); return doc; }
/** * Adds a new <code>SignatureConfirmation</code> to a soap envelope. * * A complete <code>SignatureConfirmation</code> is constructed and added * to the <code>wsse:Security</code> header. * * @param doc The SOAP envelope as W3C document * @param sigVal the Signature value. This will be the content of the "Value" attribute. * @param secHeader The security header that holds the Signature element. * @return Document with SignatureConfirmation added */ public Document build(Document doc, byte[] sigVal, WSSecHeader secHeader) { log.debug("Begin add signature confirmation..."); signatureValue = sigVal; prepare(doc); prependToHeader(secHeader); return doc; }