|
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.OAuthContext
public class OAuthContext
Captures the information about the current client request which custom filters may use to further protect the endpoints
Constructor Summary | |
---|---|
OAuthContext(UserSubject resourceOwnerSubject,
UserSubject clientSubject,
List<OAuthPermission> perms,
String tokenGrantType)
|
Method Summary | |
---|---|
String |
getClientId()
Returns the client which obtained the access token |
UserSubject |
getClientSubject()
Gets the UserSubject representing the client |
List<OAuthPermission> |
getPermissions()
Gets the list of the permissions assigned to the current access token |
UserSubject |
getSubject()
Gets the UserSubject representing the resource owner |
String |
getTokenAudience()
|
String |
getTokenGrantType()
Returns the grant type which was used to obtain the access token the client is using now during the current request |
String |
getTokenKey()
Returns the access token the client is using now during the current request |
void |
setClientId(String clientId)
Sets the client which obtained the access token |
void |
setTokenAudience(String tokenAudience)
|
void |
setTokenKey(String tokenKey)
Sets the access token the client is using now during the current request |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OAuthContext(UserSubject resourceOwnerSubject, UserSubject clientSubject, List<OAuthPermission> perms, String tokenGrantType)
Method Detail |
---|
public UserSubject getSubject()
UserSubject
representing the resource owner
public UserSubject getClientSubject()
UserSubject
representing the client
public List<OAuthPermission> getPermissions()
public String getTokenGrantType()
public String getClientId()
public void setClientId(String clientId)
clientId
- public String getTokenKey()
public void setTokenKey(String tokenKey)
tokenKey
- public String getTokenAudience()
public void setTokenAudience(String tokenAudience)
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |