|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.rs.security.oauth2.common.AccessToken org.apache.cxf.rs.security.oauth2.common.ServerAccessToken
public abstract class ServerAccessToken
Server Access Token representation
Constructor Summary | |
---|---|
protected |
ServerAccessToken(Client client,
String tokenType,
String tokenKey,
long expiresIn,
long issuedAt)
|
Method Summary | |
---|---|
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 |
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 |
Methods inherited from class org.apache.cxf.rs.security.oauth2.common.AccessToken |
---|
getExpiresIn, getIssuedAt, getParameters, getRefreshToken, getTokenKey, getTokenType, setExpiresIn, setIssuedAt, setParameters, setRefreshToken |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ServerAccessToken(Client client, String tokenType, String tokenKey, long expiresIn, long issuedAt)
Method Detail |
---|
public 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()
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |