public class UserCredential extends Object
Constructor and Description |
---|
UserCredential(String password)
Create a
UserCredential with the specified password value. |
UserCredential(String username,
String password)
Create a
UserCredential with the specified values. |
Modifier and Type | Method and Description |
---|---|
String |
getPassword()
Get the user password.
|
String |
getPasswordHash()
Get the SHA-512 hash of the user password.
|
String |
getUsername()
Get the user name.
|
public UserCredential(String username, String password)
UserCredential
with the specified values.username
- the name of the user; must not be nullpassword
- the password of the user; must not be nullpublic UserCredential(String password)
UserCredential
with the specified password value.password
- the password of the user; must not be nullpublic String getUsername()
public String getPassword()
public String getPasswordHash()