HADOOP-14055. SwiftRestClient includes pass length in exception if auth fails. Contributed by Marcell Hegedus.

This commit is contained in:
Arpit Agarwal 2017-02-10 10:09:31 -08:00
parent 1238fa71f8
commit 2b7a7bbe0f

View File

@ -80,8 +80,7 @@ public void setUsername(String username) {
@Override
public String toString() {
return "user '" + username + '\'' +
" with password of length " + ((password == null) ? 0 : password.length());
return "PasswordCredentials{username='" + username + "'}";
}
}