Class AccessTokenRegistration
java.lang.Object
org.apache.cxf.rs.security.oauth2.common.AccessTokenRegistration
Captures the information associated with the access token request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the scope explicitly approved by the end userReturns theClientinstanceGet the grant codeGets the type of grant which is exchanged for this tokengetNonce()Gets the requested scopeGet the response typeGets 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) voidSets 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 tokenvoidvoidsetRequestedScope(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
-
Constructor Details
-
AccessTokenRegistration
public AccessTokenRegistration()
-
-
Method Details
-
setClient
Sets theClientinstance- Parameters:
client- the client
-
getClient
Returns theClientinstance- Returns:
- the client.
-
setRequestedScope
Sets the requested scope- Parameters:
requestedScope- the scope
-
getRequestedScope
Gets the requested scope- Returns:
- the scope
-
setApprovedScope
Sets the scope explicitly approved by the end user- Parameters:
approvedScope- the approved scope
-
getApprovedScope
Gets the scope explicitly approved by the end user- Returns:
- the scope
-
setSubject
Sets the {@link UserSubject) instance capturing the information about the end user- Parameters:
subject- the end user subject
-
getSubject
Gets the {@link UserSubject) instance capturing the information about the end user- Returns:
- the subject
-
setGrantType
Sets the type of grant which is exchanged for this token- Parameters:
grantType- the grant type
-
getGrantType
Gets the type of grant which is exchanged for this token- Returns:
- the grant type
-
getAudiences
-
setAudiences
-
getClientCodeVerifier
-
setClientCodeVerifier
-
getNonce
-
setNonce
-
setResponseType
Set the response type- Parameters:
responseType- the response type
-
getResponseType
Get the response type- Returns:
- the response type, null if no redirection flow was used
-
setGrantCode
Set the grant code which was used to request the token- Parameters:
grantCode- the grant code
-
getGrantCode
Get the grant code- Returns:
- the grant code, null if no authorization code grant was used
-
getExtraProperties
-
setExtraProperties
-