werner 2005/06/05 11:51:43
Modified: wss4j/src/org/apache/ws/security WSConstants.java
Log:
Use the full XMLSchema date format including milliseconds.
Attention: this may cause interop problems if the other
side does not support this. To switch to format without
millisecondes pls change the accroding parameter in
WSConstants.
Revision Changes Path
1.28 +10 -0 ws-fx/wss4j/src/org/apache/ws/security/WSConstants.java
Index: WSConstants.java
===================================================================
RCS file: /home/cvs/ws-fx/wss4j/src/org/apache/ws/security/WSConstants.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- WSConstants.java 16 May 2005 09:31:41 -0000 1.27
+++ WSConstants.java 5 Jun 2005 18:51:43 -0000 1.28
@@ -51,7 +51,17 @@
* @param specs instructs WSS4J on which standard to follow
*/
public static final int COMPLIANCE_MODE = OASIS_1_0;
+ /**
+ * Set the timestamp precision mode.
+ * If set to <code>true</code> then use timestamps with milliseconds,
+ * otherwise omit the millisconds. As per XML Date/Time specification
+ * the defualt is to include the milliseconds.
+ */
+ public static final boolean TIMESTAMP_WITH_MS = true;
+ /*
+ * All the various string and keywords required.
+ */
public static final String WSSE_NS_OASIS_2002_07 =
"http://schemas.xmlsoap.org/ws/2002/07/secext";
public static final String WSSE_NS_OASIS_2002_12 =
"http://schemas.xmlsoap.org/ws/2002/12/secext";
public static final String WSSE_NS_OASIS_2003_06 =
"http://schemas.xmlsoap.org/ws/2003/06/secext";