Apache CXF API

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

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

public class AccessTokenRegistration
extends Object

Captures the information associated with the access token request.


Constructor Summary
AccessTokenRegistration()
           
 
Method Summary
 List<String> getApprovedScope()
          Gets the scope explicitly approved by the end user
 String getAudience()
           
 Client getClient()
          Returns the Client instance
 String getGrantType()
          Gets the type of grant which is exchanged for this token
 List<String> getRequestedScope()
          Gets the requested scope
 UserSubject getSubject()
          Gets the {@link UserSubject) instance capturing the information about the end user
 void setApprovedScope(List<String> approvedScope)
          Sets the scope explicitly approved by the end user
 void setAudience(String audience)
           
 void setClient(Client client)
          Sets the Client instance
 void setGrantType(String grantType)
          Sets the type of grant which is exchanged for this token
 void setRequestedScope(List<String> requestedScope)
          Sets the requested scope
 void setSubject(UserSubject subject)
          Sets the {@link UserSubject) instance capturing the information about the end user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessTokenRegistration

public AccessTokenRegistration()
Method Detail

setClient

public void setClient(Client client)
Sets the Client instance

Parameters:
client - the client

getClient

public Client getClient()
Returns the Client instance

Returns:
the client.

setRequestedScope

public void setRequestedScope(List<String> requestedScope)
Sets the requested scope

Parameters:
requestedScope - the scope

getRequestedScope

public List<String> getRequestedScope()
Gets the requested scope

Returns:
the scope

setApprovedScope

public void setApprovedScope(List<String> approvedScope)
Sets the scope explicitly approved by the end user

Parameters:
approvedScope - the approved scope

getApprovedScope

public List<String> getApprovedScope()
Gets the scope explicitly approved by the end user

Returns:
the scope

setSubject

public void setSubject(UserSubject subject)
Sets the {@link UserSubject) instance capturing the information about the end user

Parameters:
subject - the end user subject

getSubject

public UserSubject getSubject()
Gets the {@link UserSubject) instance capturing the information about the end user

Returns:
the subject

setGrantType

public void setGrantType(String grantType)
Sets the type of grant which is exchanged for this token

Parameters:
grantType - the grant type

getGrantType

public String getGrantType()
Gets the type of grant which is exchanged for this token

Returns:
the grant type

getAudience

public String getAudience()

setAudience

public void setAudience(String audience)

Apache CXF API

Apache CXF