public abstract class ServerAccessToken extends AccessToken
Modifier | Constructor and Description |
---|---|
protected |
ServerAccessToken() |
protected |
ServerAccessToken(Client client,
String tokenType,
String tokenKey,
long expiresIn) |
protected |
ServerAccessToken(Client client,
String tokenType,
String tokenKey,
long expiresIn,
long issuedAt) |
protected |
ServerAccessToken(ServerAccessToken token,
String key) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAudiences() |
Client |
getClient()
Returns the Client associated with this token
|
String |
getClientCodeVerifier() |
Map<String,String> |
getExtraProperties() |
String |
getGrantCode()
Get the grant code
|
String |
getGrantType()
Returns the grant type which was used to obtain the access token
|
String |
getNonce() |
String |
getResponseType()
Get the response type
|
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 |
setAudiences(List<String> audiences) |
void |
setClient(Client c) |
void |
setClientCodeVerifier(String clientCodeVerifier) |
void |
setExtraProperties(Map<String,String> extraProperties) |
void |
setGrantCode(String grantCode)
Set the grant code which was used to request the token
|
void |
setGrantType(String grantType)
Sets the grant type which was used to obtain the access token
|
void |
setNonce(String nonce) |
void |
setResponseType(String responseType)
Set the response type
|
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
|
protected static ServerAccessToken |
validateTokenType(ServerAccessToken token,
String expectedType) |
getExpiresIn, getIssuedAt, getIssuer, getParameters, getRefreshToken, getTokenKey, getTokenType, setExpiresIn, setIssuedAt, setIssuer, setParameters, setRefreshToken, setTokenKey, setTokenType
protected ServerAccessToken()
protected ServerAccessToken(Client client, String tokenType, String tokenKey, long expiresIn)
protected ServerAccessToken(Client client, String tokenType, String tokenKey, long expiresIn, long issuedAt)
protected ServerAccessToken(ServerAccessToken token, String key)
public Client getClient()
public void setClient(Client c)
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 void setResponseType(String responseType)
responseType
- the response typepublic String getResponseType()
protected static ServerAccessToken validateTokenType(ServerAccessToken token, String expectedType)
public String getClientCodeVerifier()
public void setClientCodeVerifier(String clientCodeVerifier)
public String getNonce()
public void setNonce(String nonce)
public void setGrantCode(String grantCode)
grantCode
- the grant codepublic String getGrantCode()
Apache CXF