Class UserCredential
java.lang.Object
org.springframework.credhub.support.user.UserCredential
A user credential consists of an optional username and a password. When retrieved, a
 user credential will contain a hash of the password.
- Author:
 - Scott Frederick
 
- 
Constructor Summary
ConstructorsConstructorDescriptionUserCredential(String password) Create aUserCredentialwith the specified password value.UserCredential(String username, String password) Create aUserCredentialwith the specified values. - 
Method Summary
Modifier and TypeMethodDescriptionGet the user password.Get the SHA-512 hash of the user password.Get the user name. 
- 
Constructor Details
- 
UserCredential
Create aUserCredentialwith the specified values.- Parameters:
 username- the name of the user; must not be nullpassword- the password of the user; must not be null
 - 
UserCredential
Create aUserCredentialwith the specified password value.- Parameters:
 password- the password of the user; must not be null
 
 - 
 - 
Method Details
- 
getUsername
Get the user name.- Returns:
 - the user name
 
 - 
getPassword
Get the user password.- Returns:
 - the user password
 
 - 
getPasswordHash
Get the SHA-512 hash of the user password.- Returns:
 - the hash of the user password
 
 
 -