mirror of https://github.com/apache/jclouds.git
JCLOUDS-832: Don't expose the password credentials in the toString method
This commit is contained in:
parent
290a458e5e
commit
7c9d6f7627
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue