public class UserEntity extends Object implements User, Serializable, DbEntity, HasDbRevision
Modifier and Type | Field and Description |
---|---|
protected int |
attempts |
protected String |
email |
protected String |
firstName |
protected String |
id |
protected String |
lastName |
protected Date |
lockExpirationTime |
protected String |
newPassword |
protected String |
password |
protected int |
revision |
protected String |
salt |
Constructor and Description |
---|
UserEntity() |
UserEntity(String id) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkPasswordAgainstPolicy() |
void |
encryptPassword() |
protected String |
encryptPassword(String password,
String salt) |
protected String |
generateSalt() |
int |
getAttempts() |
String |
getEmail() |
String |
getFirstName() |
String |
getId() |
String |
getLastName() |
Date |
getLockExpirationTime() |
String |
getPassword() |
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
int |
getRevision() |
int |
getRevisionNext() |
String |
getSalt() |
boolean |
hasNewPassword() |
void |
setAttempts(int attempts) |
void |
setDbPassword(String password)
Special setter for MyBatis.
|
void |
setEmail(String email) |
void |
setFirstName(String firstName) |
void |
setId(String id) |
void |
setLastName(String lastName) |
void |
setLockExpirationTime(Date lockExpirationTime) |
void |
setPassword(String password) |
void |
setRevision(int revision) |
void |
setSalt(String salt) |
String |
toString() |
protected String id
protected int revision
protected String firstName
protected String lastName
protected String email
protected String password
protected String newPassword
protected String salt
protected Date lockExpirationTime
protected int attempts
public UserEntity()
public UserEntity(String id)
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public String getId()
public void setId(String id)
public String getFirstName()
getFirstName
in interface User
public void setFirstName(String firstName)
setFirstName
in interface User
public String getLastName()
getLastName
in interface User
public void setLastName(String lastName)
setLastName
in interface User
public String getPassword()
getPassword
in interface User
public void setPassword(String password)
setPassword
in interface User
public String getSalt()
public void setSalt(String salt)
public void setDbPassword(String password)
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public Date getLockExpirationTime()
public void setLockExpirationTime(Date lockExpirationTime)
public int getAttempts()
public void setAttempts(int attempts)
public void encryptPassword()
protected String generateSalt()
public boolean checkPasswordAgainstPolicy()
public boolean hasNewPassword()
Copyright © 2021. All rights reserved.