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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the token owner.Returns the token expiry date.longgetId()getValue()Returns the token value.intvoidsetAuthInfo(AuthInfo info) Set the token owner.voidsetExpiryDate(Date expiryDate) voidsetId(long id) voidvoidsetVersion(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)
-