public abstract class AccessToken extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
AccessToken() |
protected |
AccessToken(String tokenType,
String tokenKey) |
protected |
AccessToken(String tokenType,
String tokenKey,
long expiresIn,
long issuedAt) |
protected |
AccessToken(String tokenType,
String tokenKey,
long expiresIn,
long issuedAt,
String refreshToken,
Map<String,String> parameters) |
Modifier and Type | Method and Description |
---|---|
long |
getExpiresIn()
The token lifetime
|
long |
getIssuedAt() |
Map<String,String> |
getParameters()
Gets token parameters
|
String |
getRefreshToken()
Gets the refresh token key the client can use to obtain a new
access token
|
String |
getTokenKey()
Returns the token key
|
String |
getTokenType()
Returns the token type such as bearer, mac, etc
|
void |
setExpiresIn(long expiresIn) |
void |
setIssuedAt(long issuedAt) |
void |
setParameters(Map<String,String> parameters)
Sets additional token parameters
|
void |
setRefreshToken(String refreshToken)
Sets the refresh token key the client can use to obtain a new
access token
|
void |
setTokenKey(String key) |
void |
setTokenType(String type) |
public String getTokenType()
public void setTokenType(String type)
public String getTokenKey()
public void setTokenKey(String key)
public void setRefreshToken(String refreshToken)
refreshToken
- the refresh tokenpublic String getRefreshToken()
public long getExpiresIn()
public void setExpiresIn(long expiresIn)
public long getIssuedAt()
public void setIssuedAt(long issuedAt)
Apache CXF