Class UserToken
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.token.Token
-
- de.terrestris.shoguncore.model.token.UserToken
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PasswordResetToken,RegistrationToken
@Entity public abstract class UserToken extends Token
- Author:
- Daniel Koch, Nils Bühner
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)UsergetUser()inthashCode()-
Methods inherited from class de.terrestris.shoguncore.model.token.Token
expiresWithin, getExpirationDate, getToken
-
Methods inherited from class de.terrestris.shoguncore.model.PersistentObject
getCreated, getGroupPermissions, getId, getModified, getUserPermissions, setGroupPermissions, setModified, setUserPermissions, toString
-
-
-
-
Constructor Detail
-
UserToken
protected UserToken()
Default constructor
-
UserToken
protected UserToken(User user)
Constructor. Uses theDEFAULT_EXPIRATION_MINUTESvalue.- Parameters:
user- The user.
-
UserToken
protected UserToken(User user, int expirationInMinutes)
Constructor- Parameters:
user- The userexpirationInMinutes- The expiration period in minutes
-
-