hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From micha...@apache.org
Subject svn commit: r1696576 - in /httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/auth: NTCredentials.java UsernamePasswordCredentials.java
Date Wed, 19 Aug 2015 13:02:54 GMT
Author: michaelo
Date: Wed Aug 19 13:02:54 2015
New Revision: 1696576

URL: http://svn.apache.org/r1696576
Log:
HTTPCLIENT-1106: Use character arrays for passwords in Credentials objects, not Strings

Deprecate constructors using String-based passwords

Modified:
    httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java
    httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java

Modified: httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java?rev=1696576&r1=1696575&r2=1696576&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java
(original)
+++ httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java
Wed Aug 19 13:02:54 2015
@@ -59,6 +59,7 @@ public class NTCredentials implements Cr
      * string argument.
      *
      * @param usernamePassword the domain/username:password formed string
+     * @deprecated (4.5) will be replaced with {@code String}, {@code char[]} in 5.0
      */
     public NTCredentials(final String usernamePassword) {
         super();
@@ -88,7 +89,7 @@ public class NTCredentials implements Cr
     /**
      * Constructor.
      * @param userName The user name.  This should not include the domain to authenticate
with.
-     * For example: "user" is correct whereas "DOMAIN\\user" is not.
+     * For example: "user" is correct whereas "DOMAIN\user" is not.
      * @param password The password.
      * @param workstation The workstation the authentication request is originating from.
      * Essentially, the computer name for this machine.

Modified: httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java?rev=1696576&r1=1696575&r2=1696576&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java
(original)
+++ httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java
Wed Aug 19 13:02:54 2015
@@ -52,6 +52,7 @@ public class UsernamePasswordCredentials
      *
      * @param usernamePassword the username:password formed string
      * @see #toString
+     * @deprecated (4.5) will be replaced with {@code String}, {@code char[]} in 5.0
      */
     public UsernamePasswordCredentials(final String usernamePassword) {
         super();



Mime
View raw message