/** * Adds a new <code>Timestamp</code> to a soap envelope. * * A complete <code>Timestamp</code> is constructed and added to the * <code>wsse:Security</code> header. * * @param doc The SOAP envelope as W3C document * @param secHeader The security header that hold this Timestamp * @return Document with Timestamp added * @throws Exception */ public Document build(Document doc, WSSecHeader secHeader) { log.debug("Begin add timestamp..."); prepare(doc); prependToHeader(secHeader); return doc; }
/** * Adds a new <code>Timestamp</code> to a soap envelope. * * A complete <code>Timestamp</code> is constructed and added to the * <code>wsse:Security</code> header. * * @param doc The SOAP envelope as W3C document * @param secHeader The security header that hold this Timestamp * @return Document with Timestamp added * @throws Exception */ public Document build(Document doc, WSSecHeader secHeader) { log.debug("Begin add timestamp..."); prepare(doc); prependToHeader(secHeader); return doc; }