public class UserRecord extends User
| Modifier and Type | Field and Description |
|---|---|
private java.sql.Date |
passChanged
Date of the last password change
|
private byte[] |
password
User's encrypted password
|
private byte[] |
salt
Salt used to encrypt user's password
|
| Constructor and Description |
|---|
UserRecord(java.lang.String name,
boolean admin,
byte[] salt,
byte[] password,
java.sql.Date passChanged)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.sql.Date |
getPassChanged()
Get the date of the last password change.
|
byte[] |
getPassword()
Get the user's encrypted password.
|
byte[] |
getSalt()
Get the salt used to encrypt the user's password.
|
private final byte[] salt
private final byte[] password
private final java.sql.Date passChanged
public UserRecord(java.lang.String name,
boolean admin,
byte[] salt,
byte[] password,
java.sql.Date passChanged)
name - Unique name.admin - Does user have administrative privileges?salt - Salt used to encrypt user's password.password - User's encrypted password.passChanged - Date of the last password change.public byte[] getSalt()
public byte[] getPassword()
public java.sql.Date getPassChanged()