@Deprecated public class UserCredentials extends Object
Modifier and Type | Field and Description |
---|---|
static UserCredentials |
NO_CREDENTIALS
Deprecated.
|
Constructor and Description |
---|
UserCredentials(String username,
String password)
Deprecated.
Creates a new
UserCredentials instance from the given username and password. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Deprecated.
|
String |
getObfuscatedPassword()
Deprecated.
Returns the password in obfuscated fashion which means everything except the first and last character replaced by
stars.
|
String |
getPassword()
Deprecated.
Get the password to use for authentication.
|
String |
getUsername()
Deprecated.
Get the username to use for authentication.
|
int |
hashCode()
Deprecated.
|
boolean |
hasPassword()
Deprecated.
Returns whether the credentials contain a password.
|
boolean |
hasUsername()
Deprecated.
Returns whether the credentials contain a username.
|
String |
toString()
Deprecated.
|
public static final UserCredentials NO_CREDENTIALS
@Nullable public String getUsername()
@Nullable public String getPassword()
public boolean hasUsername()
public boolean hasPassword()
@Nullable public String getObfuscatedPassword()
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.