models.token
Class AccessToken

java.lang.Object
  extended by models.token.AccessToken

public class AccessToken
extends java.lang.Object

token for authorization users

See Also:
Token

Field Summary
protected  java.lang.String key
           
 
Constructor Summary
AccessToken(java.lang.String key, int ttl, java.lang.Long userId, java.lang.String refreshToken)
           
 
Method Summary
 java.lang.String getKey()
           
 java.lang.String getRefreshToken()
           
 int getTtl()
           
 java.lang.Long getUserId()
           
 java.lang.String name()
           
static java.lang.String name(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

protected final java.lang.String key
Constructor Detail

AccessToken

public AccessToken(java.lang.String key,
                   int ttl,
                   java.lang.Long userId,
                   java.lang.String refreshToken)
Method Detail

getTtl

public int getTtl()

getUserId

public java.lang.Long getUserId()

getRefreshToken

public java.lang.String getRefreshToken()

name

public java.lang.String name()

name

public static java.lang.String name(java.lang.String key)

getKey

public java.lang.String getKey()