Class AuthToken

java.lang.Object
eu.webtoolkit.jwt.auth.jpa.AuthToken

public class AuthToken
extends java.lang.Object
A JPA implementation for an authentication token. This class is used by AuthInfo, and stores authentication tokens.
See Also:
AuthInfo
  • Constructor Summary

    Constructors
    Constructor Description
    AuthToken()
    Default constructor.
    AuthToken​(java.lang.String value, java.util.Date expiryDate)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    AuthInfo getAuthInfo()
    Returns the token owner.
    java.util.Date getExpiryDate()
    Returns the token expiry date.
    long getId()  
    java.lang.String getValue()
    Returns the token value.
    int getVersion()  
    void setAuthInfo​(AuthInfo info)
    Set the token owner.
    void setExpiryDate​(java.util.Date expiryDate)  
    void setId​(long id)  
    void setValue​(java.lang.String value)  
    void setVersion​(int version)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AuthToken

      public AuthToken()
      Default constructor.
    • AuthToken

      public AuthToken​(java.lang.String value, java.util.Date expiryDate)
      Constructor.
  • Method Details

    • getAuthInfo

      public AuthInfo getAuthInfo()
      Returns the token owner.
    • setAuthInfo

      public void setAuthInfo​(AuthInfo info)
      Set the token owner.
    • getValue

      public java.lang.String getValue()
      Returns the token value.
    • setValue

      public void setValue​(java.lang.String value)
    • getExpiryDate

      public java.util.Date getExpiryDate()
      Returns the token expiry date.
    • setExpiryDate

      public void setExpiryDate​(java.util.Date expiryDate)
    • getId

      public long getId()
    • setId

      public void setId​(long id)
    • getVersion

      public int getVersion()
    • setVersion

      public void setVersion​(int version)