models.token
Class RefreshToken

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

public class RefreshToken
extends java.lang.Object

token for refreshing access token when it out of date


Field Summary
protected  java.lang.String key
           
 
Constructor Summary
RefreshToken(java.lang.String key, java.lang.Long userId, int ttl)
           
 
Method Summary
 java.lang.String getKey()
           
 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

RefreshToken

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

getTtl

public int getTtl()

name

public java.lang.String name()

name

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

getUserId

public java.lang.Long getUserId()

getKey

public java.lang.String getKey()