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
FieldsModifier and TypeFieldDescriptionprivate @NonNull BooleanA boolean that indicates if theUseris active or notprivate @NonNull StringThe city of birth of theUserprivate DateThe creation date of theUserprivate @NonNull DateThe date of birth of theUserprivate @NonNull StringThe unique email of theUserprivate @NonNull StringThe unique fiscal code of theUserprivate @NonNull StringThe hash password of theUser.private UUIDThe unique identifier of theUserprivate @NonNull StringThe name of theUserprivate @NonNull StringThe refresh token of theUser.private @NonNull StringThe surname of theUserprivate DateThe last update date of theUser -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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 theUseris 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