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