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