Class ClientAccessToken
java.lang.Object
org.apache.cxf.rs.security.oauth2.common.AccessToken
org.apache.cxf.rs.security.oauth2.common.ClientAccessToken
- All Implemented Interfaces:
Serializable
Represents the extended client view of
AccessToken.
It may contain the actual scope value assigned to the access token,
the refresh token key, and other properties such as when this token
will expire, etc.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the actual scope assigned to the access token.voidsetApprovedScope(String approvedScope) Sets the actual scope assigned to the access token.toString()Methods inherited from class org.apache.cxf.rs.security.oauth2.common.AccessToken
getEncodedToken, getExpiresIn, getIssuedAt, getIssuer, getNotBefore, getParameters, getRefreshToken, getTokenKey, getTokenType, setEncodedToken, setExpiresIn, setIssuedAt, setIssuer, setNotBefore, setParameters, setRefreshToken, setTokenKey, setTokenType
-
Constructor Details
-
ClientAccessToken
public ClientAccessToken() -
ClientAccessToken
-
-
Method Details
-
setApprovedScope
Sets the actual scope assigned to the access token. For example, it can be down-scoped in which case the client may need to adjust the way it works with the end user.- Parameters:
approvedScope- the actual scope
-
getApprovedScope
Gets the actual scope assigned to the access token.- Returns:
- the scope
-
toString
-