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

This commit is contained in:
Ignasi Barrera 2015-02-20 11:51:49 +01:00
parent 290a458e5e
commit 7c9d6f7627
1 changed files with 2 additions and 1 deletions

View File

@ -127,7 +127,8 @@ public class PasswordCredentials {
protected ToStringHelper string() { protected ToStringHelper string() {
return Objects.toStringHelper(this) return Objects.toStringHelper(this)
.add("username", username).add("password", password); .add("username", username)
.add("password", password == null ? null : "*****");
} }
@Override @Override