You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by ru...@apache.org on 2006/09/20 10:52:23 UTC
svn commit: r448126 -
/webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecTimestamp.java
Author: ruchithf
Date: Wed Sep 20 01:52:22 2006
New Revision: 448126
URL: http://svn.apache.org/viewvc?view=rev&rev=448126
Log:
Allow extracting the Timestamp element
Modified:
webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecTimestamp.java
Modified: webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecTimestamp.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecTimestamp.java?view=diff&rev=448126&r1=448125&r2=448126
==============================================================================
--- webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecTimestamp.java (original)
+++ webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecTimestamp.java Wed Sep 20 01:52:22 2006
@@ -22,6 +22,7 @@
import org.apache.ws.security.message.token.Timestamp;
import org.apache.ws.security.util.WSSecurityUtil;
import org.w3c.dom.Document;
+import org.w3c.dom.Element;
/**
* Builds a WS Timestamp and inserts it into the SOAP Envelope. Refer to the WS
@@ -128,5 +129,15 @@
return null;
}
return ts.getID();
+ }
+
+ /**
+ * Get the timestamp element generated during <code>prepare()</code>.
+ */
+ public Element getElement() {
+ if (ts == null) {
+ return null;
+ }
+ return ts.getElement();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org