Class AccessTokenRegistration
- java.lang.Object
-
- org.apache.cxf.rs.security.oauth2.common.AccessTokenRegistration
-
public class AccessTokenRegistration extends Object
Captures the information associated with the access token request.
-
-
Constructor Summary
Constructors Constructor Description AccessTokenRegistration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getApprovedScope()Gets the scope explicitly approved by the end userList<String>getAudiences()ClientgetClient()Returns theClientinstanceStringgetClientCodeVerifier()Map<String,String>getExtraProperties()StringgetGrantCode()Get the grant codeStringgetGrantType()Gets the type of grant which is exchanged for this tokenStringgetNonce()List<String>getRequestedScope()Gets the requested scopeStringgetResponseType()Get the response typeUserSubjectgetSubject()Gets the {@link UserSubject) instance capturing the information about the end uservoidsetApprovedScope(List<String> approvedScope)Sets the scope explicitly approved by the end uservoidsetAudiences(List<String> audiences)voidsetClient(Client client)Sets theClientinstancevoidsetClientCodeVerifier(String clientCodeVerifier)voidsetExtraProperties(Map<String,String> extraProperties)voidsetGrantCode(String grantCode)Set the grant code which was used to request the tokenvoidsetGrantType(String grantType)Sets the type of grant which is exchanged for this tokenvoidsetNonce(String nonce)voidsetRequestedScope(List<String> requestedScope)Sets the requested scopevoidsetResponseType(String responseType)Set the response typevoidsetSubject(UserSubject subject)Sets the {@link UserSubject) instance capturing the information about the end user
-
-
-
Method Detail
-
setClient
public void setClient(Client client)
Sets theClientinstance- Parameters:
client- 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
-
getClientCodeVerifier
public String getClientCodeVerifier()
-
setClientCodeVerifier
public void setClientCodeVerifier(String clientCodeVerifier)
-
getNonce
public String getNonce()
-
setNonce
public void setNonce(String nonce)
-
setResponseType
public void setResponseType(String responseType)
Set the response type- Parameters:
responseType- the response type
-
getResponseType
public String getResponseType()
Get the response type- Returns:
- the response type, null if no redirection flow was used
-
setGrantCode
public void setGrantCode(String grantCode)
Set the grant code which was used to request the token- Parameters:
grantCode- the grant code
-
getGrantCode
public String getGrantCode()
Get the grant code- Returns:
- the grant code, null if no authorization code grant was used
-
-