public abstract class ServerAccessToken extends AccessToken
| Modifier | Constructor and Description |
|---|---|
protected |
ServerAccessToken(Client client,
String tokenType,
String tokenKey,
long expiresIn,
long issuedAt) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAudience() |
Client |
getClient()
Returns the Client associated with this token
|
String |
getGrantType()
Returns the grant type which was used to obtain the access token
|
long |
getLifetime()
Deprecated.
|
List<OAuthPermission> |
getScopes()
Returns a list of opaque permissions/scopes
|
UserSubject |
getSubject()
Returns a subject capturing the login name
the end user used to login to the resource server
when authorizing a given client request
|
void |
setAudience(String audience) |
void |
setGrantType(String grantType)
Sets the grant type which was used to obtain the access token
|
void |
setScopes(List<OAuthPermission> scopes)
Sets a list of opaque permissions/scopes
|
void |
setSubject(UserSubject subject)
Sets a subject capturing the login name
the end user used to login to the resource server
when authorizing a given client request
|
getExpiresIn, getIssuedAt, getParameters, getRefreshToken, getTokenKey, getTokenType, setExpiresIn, setIssuedAt, setParameters, setRefreshTokenpublic Client getClient()
@Deprecated public long getLifetime()
public List<OAuthPermission> getScopes()
public void setScopes(List<OAuthPermission> scopes)
scopes - the scopespublic void setSubject(UserSubject subject)
subject - public UserSubject getSubject()
public void setGrantType(String grantType)
grantType - the grant typepublic String getGrantType()
public String getAudience()
public void setAudience(String audience)
Apache CXF