@MappedSuperclass 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 |
---|---|
String |
getEncodedToken() |
long |
getExpiresIn()
The token lifetime
|
long |
getIssuedAt() |
String |
getIssuer() |
long |
getNotBefore() |
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 |
setEncodedToken(String encodedToken) |
void |
setExpiresIn(long expiresIn) |
void |
setIssuedAt(long issuedAt) |
void |
setIssuer(String issuer) |
void |
setNotBefore(long notBefore) |
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)
public void setParameters(Map<String,String> parameters)
parameters
- the token parameterspublic String getIssuer()
public void setIssuer(String issuer)
public String getEncodedToken()
public void setEncodedToken(String encodedToken)
public long getNotBefore()
public void setNotBefore(long notBefore)
Apache CXF