public class Password extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static Password |
$ |
byte[] |
hash |
static String |
HASH_ALGORITHM |
static int |
HASH_ITERATIONS |
static int |
HASH_SIZE |
byte[] |
salt |
static int |
SALT_SIZE |
Constructor and Description |
---|
Password() |
Modifier and Type | Method and Description |
---|---|
char[] |
getPassword()
This getter doesn't return the password.
|
void |
setPassword(char[] password) |
boolean |
validatePassword(char[] password) |
public static final Password $
public static final String HASH_ALGORITHM
public static final int HASH_ITERATIONS
public static final int HASH_SIZE
public static final int SALT_SIZE
public byte[] hash
public byte[] salt
public void setPassword(char[] password)
public char[] getPassword()
form.line(new PasswordFormElement(User.$.password));The length of the password is set to 32. This is arbitrary. Because the password is hashed anyway every length could be accepted.
null
public boolean validatePassword(char[] password)
Copyright © 2019. All rights reserved.