models.token
Class RefreshToken
java.lang.Object
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 |
key
protected final java.lang.String key
RefreshToken
public RefreshToken(java.lang.String key,
java.lang.Long userId,
int ttl)
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()