Package it.univr.passportease.entity
Class User
java.lang.Object
it.univr.passportease.entity.User
- All Implemented Interfaces:
UserType
The
User
class is an entity that represents a user, or costumers, of the application.-
Field Summary
Modifier and TypeFieldDescriptionprivate @NonNull Boolean
A boolean that indicates if theUser
is active or notprivate @NonNull String
The city of birth of theUser
private Date
The creation date of theUser
private @NonNull Date
The date of birth of theUser
private @NonNull String
The unique email of theUser
private @NonNull String
The unique fiscal code of theUser
private @NonNull String
The hash password of theUser
.private UUID
The unique identifier of theUser
private @NonNull String
The name of theUser
private @NonNull String
The refresh token of theUser
.private @NonNull String
The surname of theUser
private Date
The last update date of theUser
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.univr.passportease.helper.UserType
getEmail, getHashPassword, getRefreshToken, setEmail, setHashPassword, setRefreshToken
-
Field Details
-
id
The unique identifier of theUser
-
fiscalCode
The unique fiscal code of theUser
-
email
The unique email of theUser
-
name
The name of theUser
-
surname
The surname of theUser
-
cityOfBirth
The city of birth of theUser
-
dateOfBirth
The date of birth of theUser
-
hashPassword
The hash password of theUser
. Known issue: The password is not salted or peppered. -
active
A boolean that indicates if theUser
is active or not -
refreshToken
The refresh token of theUser
. Known issue: The refresh token is stored in plain text, and if the database is compromised, the attacker can impersonate the user. -
createdAt
The creation date of theUser
-
updatedAt
The last update date of theUser
-
-
Constructor Details
-
User
public User()
-
-
Method Details