cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1124688 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/UsernameToken.java
Date Thu, 19 May 2011 11:29:56 GMT
Author: coheigea
Date: Thu May 19 11:29:56 2011
New Revision: 1124688

URL: http://svn.apache.org/viewvc?rev=1124688&view=rev
Log:
Write out UsernameToken sp13 elements in the WSDL.

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/UsernameToken.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/UsernameToken.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/UsernameToken.java?rev=1124688&r1=1124687&r2=1124688&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/UsernameToken.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/UsernameToken.java
Thu May 19 11:29:56 2011
@@ -23,6 +23,7 @@ import javax.xml.stream.XMLStreamExcepti
 import javax.xml.stream.XMLStreamWriter;
 
 import org.apache.cxf.ws.security.policy.SP12Constants;
+import org.apache.cxf.ws.security.policy.SP13Constants;
 import org.apache.cxf.ws.security.policy.SPConstants;
 
 public class UsernameToken extends Token {
@@ -159,6 +160,15 @@ public class UsernameToken extends Token
                     writer.writeStartElement(prefix, SPConstants.REQUIRE_IMPLIED_DERIVED_KEYS,
namespaceURI);
                     writer.writeEndElement();
                 }
+                
+                if (isRequireCreated()) {
+                    writer.writeStartElement(SP13Constants.SP_PREFIX, "Created", SP13Constants.SP_NS);
+                    writer.writeEndElement();
+                }
+                if (isRequireNonce()) {
+                    writer.writeStartElement(SP13Constants.SP_PREFIX, "Nonce", SP13Constants.SP_NS);
+                    writer.writeEndElement();
+                }
 
             }
             writer.writeEndElement();



Mime
View raw message