/** * Get the timestamp element generated during <code>prepare()</code>. */ public Element getElement() { if (ts == null) { return null; } return ts.getElement(); }
/** * Prepends the Timestamp element to the elements already in the Security * header. * * The method can be called any time after <code>prepare()</code>. This * allows to insert the Timestamp element at any position in the Security * header. */ public void prependToHeader() { Element securityHeaderElement = getSecurityHeader().getSecurityHeaderElement(); WSSecurityUtil.prependChildElement(securityHeaderElement, ts.getElement()); }
CastUtils.cast((List<?>)signedResult.get(WSSecurityEngineResult.TAG_DATA_REF_URIS)); for (WSDataRef dataRef : dataRefs) { if (timestamp.getElement() == dataRef.getProtectedElement()) { return true;
CastUtils.cast((List<?>)signedResult.get(WSSecurityEngineResult.TAG_DATA_REF_URIS)); for (WSDataRef dataRef : dataRefs) { if (timestamp.getElement() == dataRef.getProtectedElement()) { return true;
public WSSecurityEngineResult(int act, Timestamp tstamp) { put(TAG_ACTION, act); put(TAG_TIMESTAMP, tstamp); put(TAG_VALIDATED_TOKEN, Boolean.FALSE); put(TAG_TOKEN_ELEMENT, tstamp.getElement()); }
if (tsResult != null) { Timestamp ts = (Timestamp)tsResult.get(WSSecurityEngineResult.TAG_TIMESTAMP); timestamp = ts.getElement();
if (tsResult != null) { Timestamp ts = (Timestamp)tsResult.get(WSSecurityEngineResult.TAG_TIMESTAMP); timestamp = ts.getElement();