Package eu.webtoolkit.jwt.auth.jpa
Class AuthToken
java.lang.Object
eu.webtoolkit.jwt.auth.jpa.AuthToken
A JPA implementation for an authentication token.
This class is used by
AuthInfo
, and stores authentication tokens.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the token owner.Returns the token expiry date.long
getId()
getValue()
Returns the token value.int
void
setAuthInfo
(AuthInfo info) Set the token owner.void
setExpiryDate
(Date expiryDate) void
setId
(long id) void
void
setVersion
(int version)
-
Constructor Details
-
AuthToken
public AuthToken()Default constructor. -
AuthToken
Constructor.
-
-
Method Details
-
getAuthInfo
Returns the token owner. -
setAuthInfo
Set the token owner. -
getValue
Returns the token value. -
setValue
-
getExpiryDate
Returns the token expiry date. -
setExpiryDate
-
getId
public long getId() -
setId
public void setId(long id) -
getVersion
public int getVersion() -
setVersion
public void setVersion(int version)
-