/** * 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 sigVal the Signature value. This will be the content of the "Value" attribute. * @return Document with SignatureConfirmation added */ public Document build(byte[] sigVal) { LOG.debug("Begin add signature confirmation..."); signatureValue = sigVal; prepare(); prependToHeader(); return getDocument(); }
byte[] sigVal = (byte[]) wsr.get(WSSecurityEngineResult.TAG_SIGNATURE_VALUE); wsc.setSignatureValue(sigVal); wsc.prepare(); addSupportingElement(wsc.getSignatureConfirmationElement()); if (sigParts != null) { wsc.prepare(); addSupportingElement(wsc.getSignatureConfirmationElement()); if (sigParts != null) {
byte[] sigVal = (byte[]) wsr.get(WSSecurityEngineResult.TAG_SIGNATURE_VALUE); wsc.setSignatureValue(sigVal); wsc.prepare(); addSupportingElement(wsc.getSignatureConfirmationElement()); if (sigParts != null) { wsc.prepare(); addSupportingElement(wsc.getSignatureConfirmationElement()); if (sigParts != null) {