You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by na...@apache.org on 2015/02/20 12:32:23 UTC

jclouds git commit: JCLOUDS-832: Don't expose the password credentials in the toString method

Repository: jclouds
Updated Branches:
  refs/heads/master 290a458e5 -> 7c9d6f762


JCLOUDS-832: Don't expose the password credentials in the toString method


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/7c9d6f76
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/7c9d6f76
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/7c9d6f76

Branch: refs/heads/master
Commit: 7c9d6f7627c0550293d6e8dae292776d68f8af95
Parents: 290a458
Author: Ignasi Barrera <na...@apache.org>
Authored: Fri Feb 20 11:51:49 2015 +0100
Committer: Ignasi Barrera <na...@apache.org>
Committed: Fri Feb 20 12:31:57 2015 +0100

----------------------------------------------------------------------
 .../openstack/keystone/v2_0/domain/PasswordCredentials.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/7c9d6f76/apis/openstack-keystone/src/main/java/org/jclouds/openstack/keystone/v2_0/domain/PasswordCredentials.java
----------------------------------------------------------------------
diff --git a/apis/openstack-keystone/src/main/java/org/jclouds/openstack/keystone/v2_0/domain/PasswordCredentials.java b/apis/openstack-keystone/src/main/java/org/jclouds/openstack/keystone/v2_0/domain/PasswordCredentials.java
index 73443f1..71381f0 100644
--- a/apis/openstack-keystone/src/main/java/org/jclouds/openstack/keystone/v2_0/domain/PasswordCredentials.java
+++ b/apis/openstack-keystone/src/main/java/org/jclouds/openstack/keystone/v2_0/domain/PasswordCredentials.java
@@ -127,7 +127,8 @@ public class PasswordCredentials {
 
    protected ToStringHelper string() {
       return Objects.toStringHelper(this)
-            .add("username", username).add("password", password);
+            .add("username", username)
+            .add("password", password == null ? null : "*****");
    }
 
    @Override