Apache CXF API

org.apache.cxf.rs.security.oauth2.common
Class OAuthContext

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.common.OAuthContext

public class OAuthContext
extends Object

Captures the information about the current client request which custom filters may use to further protect the endpoints


Constructor Summary
OAuthContext(UserSubject subject, List<OAuthPermission> perms, String tokenGrantType)
           
 
Method Summary
 List<OAuthPermission> getPermissions()
          Gets the list of the permissions assigned to the current access token
 UserSubject getSubject()
          Gets the UserSubject representing the end user authorizing the client at the authorization grant creation time
 String getTokenGrantType()
          Returns the grant type which was used to obtain 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

OAuthContext

public OAuthContext(UserSubject subject,
                    List<OAuthPermission> perms,
                    String tokenGrantType)
Method Detail

getSubject

public UserSubject getSubject()
Gets the UserSubject representing the end user authorizing the client at the authorization grant creation time

Returns:
the subject

getPermissions

public List<OAuthPermission> getPermissions()
Gets the list of the permissions assigned to the current access token

Returns:
the permissions

getTokenGrantType

public String getTokenGrantType()
Returns the grant type which was used to obtain the access token the client is using now during the current request

Returns:
the grant type

Apache CXF API

Apache CXF