[WSS4J] wss4j/src/org/apache/ws/security/message WSSAddUsernameToken.java,1.8,1.9

[email protected] Wed, 21 Jan 2004 05:31:25 -0800
Newsgroups gmane.text.xml.wss4j
Message-ID <[email protected]>
Update of /cvsroot/wss4j/wss4j/src/org/apache/ws/security/message
In directory sc8-pr-cvs1:/tmp/cvs-serv9112/src/org/apache/ws/security/message

Modified Files:
	WSSAddUsernameToken.java 
Log Message:
Add SOAP 1.2 handling. Most of the code shamelessly copied from Axis
and modified.

Index: WSSAddUsernameToken.java
===================================================================
RCS file: /cvsroot/wss4j/wss4j/src/org/apache/ws/security/message/WSSAddUsernameToken.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** WSSAddUsernameToken.java	10 Dec 2003 15:34:26 -0000	1.8
--- WSSAddUsernameToken.java	21 Jan 2004 13:31:23 -0000	1.9
***************
*** 92,95 ****
--- 92,96 ----
      public Document build(Document doc, String username, String password) { // throws Exception {
          log.debug("Begin add username token...");
+         soapConstants = WSSecurityUtil.getSOAPConstants(doc.getDocumentElement());
  		Element securityHeader = insertSecurityHeader(doc, false);
          ut = new UsernameToken(doc, passwordType);




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn