You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2012/02/24 22:40:29 UTC
svn commit: r1293437 -
/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/StandardAuthenticationProvider.java
Author: fmui
Date: Fri Feb 24 21:40:29 2012
New Revision: 1293437
URL: http://svn.apache.org/viewvc?rev=1293437&view=rev
Log:
Authenticator: removed DOM level 3 requirement
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/StandardAuthenticationProvider.java
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/StandardAuthenticationProvider.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/StandardAuthenticationProvider.java?rev=1293437&r1=1293436&r2=1293437&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/StandardAuthenticationProvider.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/StandardAuthenticationProvider.java Fri Feb 24 21:40:29 2012
@@ -143,28 +143,28 @@ public class StandardAuthenticationProvi
wsseSecurityElement.appendChild(wsuTimestampElement);
Element tsCreatedElement = document.createElementNS(WSU_NAMESPACE, "Created");
- tsCreatedElement.setTextContent(sdf.format(created));
+ tsCreatedElement.appendChild(document.createTextNode(sdf.format(created)));
wsuTimestampElement.appendChild(tsCreatedElement);
Element tsExpiresElement = document.createElementNS(WSU_NAMESPACE, "Expires");
- tsExpiresElement.setTextContent(sdf.format(expires));
+ tsExpiresElement.appendChild(document.createTextNode(sdf.format(expires)));
wsuTimestampElement.appendChild(tsExpiresElement);
Element usernameTokenElement = document.createElementNS(WSSE_NAMESPACE, "UsernameToken");
wsseSecurityElement.appendChild(usernameTokenElement);
Element usernameElement = document.createElementNS(WSSE_NAMESPACE, "Username");
- usernameElement.setTextContent(user);
+ usernameElement.appendChild(document.createTextNode(user));
usernameTokenElement.appendChild(usernameElement);
Element passwordElement = document.createElementNS(WSSE_NAMESPACE, "Password");
- passwordElement.setTextContent(password);
+ passwordElement.appendChild(document.createTextNode(password));
passwordElement.setAttribute("Type",
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText");
usernameTokenElement.appendChild(passwordElement);
Element createdElement = document.createElementNS(WSU_NAMESPACE, "Created");
- createdElement.setTextContent(sdf.format(created));
+ createdElement.appendChild(document.createTextNode(sdf.format(created)));
usernameTokenElement.appendChild(createdElement);
return wsseSecurityElement;