public interface User
Modifier and Type | Method and Description |
---|---|
void |
clearPassword()
Clears the password
|
char[] |
getPassword() |
static User |
parse(String userPassword)
Parses a User from a string, containing a username and password with a single ':' as delimiter, i.e.
|
void |
setPassword(char[] password) |
static User |
user(String username)
Creates a new User with an empty password.
|
static User |
user(String username,
char[] password)
Creates a new User.
|
String |
username() |
String username()
void setPassword(char[] password)
password
- the password, null in case of an empty passwordchar[] getPassword()
void clearPassword()
static User user(String username)
username
- the usernamestatic User user(String username, char[] password)
username
- the usernamepassword
- the passwordstatic User parse(String userPassword)
userPassword
- the username and password string