Interface UserCredentials
-
public interface UserCredentials
Represents the credentials a user and password for authentication purposes.- Author:
- James R. Perkins
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static UserCredentials
clear(String username, char[] password)
Creates a user credential for the username and password provided.byte[]
getPassword()
A byte array which represents the password for authentication.String
getUsername()
The username used for authentication.static UserCredentials
of(String username, byte[] password)
Creates a user credential for the username and password provided.
-
-
-
Method Detail
-
getUsername
String getUsername()
The username used for authentication.- Returns:
- the username
-
getPassword
byte[] getPassword()
A byte array which represents the password for authentication.- Returns:
- the password
-
clear
static UserCredentials clear(String username, char[] password)
Creates a user credential for the username and password provided.- Parameters:
username
- the username used for authenticationpassword
- the password used for authentication- Returns:
- the user credentials
-
of
static UserCredentials of(String username, byte[] password)
Creates a user credential for the username and password provided.- Parameters:
username
- the username used for authenticationpassword
- the password used for authentication- Returns:
- the user credentials
-
-