Apache CXF API

org.apache.cxf.rs.security.oauth2.grants.code
Class AuthorizationCodeRegistration

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeRegistration

public class AuthorizationCodeRegistration
extends Object

Captures the information associated with the code grant registration request.

See Also:
ServerAuthorizationCodeGrant

Constructor Summary
AuthorizationCodeRegistration()
           
 
Method Summary
 List<String> getApprovedScope()
          Gets the scopes explicitly approved by the end user
 String getAudience()
           
 Client getClient()
          Gets Client reference
 String getClientCodeVerifier()
           
 String getRedirectUri()
          Gets the redirect URI
 List<String> getRequestedScope()
          Gets the scopes request by the client
 UserSubject getSubject()
          Gets the user subject representing the end user
 void setApprovedScope(List<String> approvedScope)
          Sets the scopes explicitly approved by the end user.
 void setAudience(String audience)
           
 void setClient(Client client)
          Sets the Client reference
 void setClientCodeVerifier(String clientCodeVerifier)
           
 void setRedirectUri(String redirectUri)
          Sets the redirect URI
 void setRequestedScope(List<String> requestedScope)
          Sets the scopes request by the client
 void setSubject(UserSubject subject)
          Sets the user subject representing the end user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizationCodeRegistration

public AuthorizationCodeRegistration()
Method Detail

setClient

public void setClient(Client client)
Sets the Client reference

Parameters:
client - the client

getClient

public Client getClient()
Gets Client reference

Returns:
the client

setRedirectUri

public void setRedirectUri(String redirectUri)
Sets the redirect URI

Parameters:
redirectUri - the redirect URI

getRedirectUri

public String getRedirectUri()
Gets the redirect URI

Returns:
the redirect URI

setRequestedScope

public void setRequestedScope(List<String> requestedScope)
Sets the scopes request by the client

Parameters:
requestedScope - the requested scopes

getRequestedScope

public List<String> getRequestedScope()
Gets the scopes request by the client

Returns:
the requested scopes

setApprovedScope

public void setApprovedScope(List<String> approvedScope)
Sets the scopes explicitly approved by the end user. If this list is empty then the end user had no way to down-scope.

Parameters:
approvedScope - the approved scopes

getApprovedScope

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

Returns:
the approved scopes

setSubject

public void setSubject(UserSubject subject)
Sets the user subject representing the end user

Parameters:
subject - the subject

getSubject

public UserSubject getSubject()
Gets the user subject representing the end user

Returns:
the subject

getAudience

public String getAudience()

setAudience

public void setAudience(String audience)

getClientCodeVerifier

public String getClientCodeVerifier()

setClientCodeVerifier

public void setClientCodeVerifier(String clientCodeVerifier)

Apache CXF API

Apache CXF