Class AuthorizationCodeRegistration
java.lang.Object
org.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeRegistration
Captures the information associated with the code grant registration request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the scopes explicitly approved by the end userGetsClientreferencegetNonce()Gets the redirect URIGets the scopes request by the clientGets the user subject representing the end userbooleanvoidsetApprovedScope(List<String> approvedScope) Sets the scopes explicitly approved by the end user.voidsetAudience(String audience) voidSets theClientreferencevoidsetClientCodeChallenge(String clientCodeChallenge) voidsetClientCodeChallengeMethod(String clientCodeChallengeMethod) voidsetExtraProperties(Map<String, String> extraProperties) voidvoidsetPreauthorizedTokenAvailable(boolean preauthorizedTokenAvailable) voidsetRedirectUri(String redirectUri) Sets the redirect URIvoidsetRequestedScope(List<String> requestedScope) Sets the scopes request by the clientvoidsetResponseType(String responseType) voidsetSubject(UserSubject subject) Sets the user subject representing the end user
-
Constructor Details
-
AuthorizationCodeRegistration
public AuthorizationCodeRegistration()
-
-
Method Details
-
setClient
Sets theClientreference- Parameters:
client- the client
-
getClient
GetsClientreference- Returns:
- the client
-
setRedirectUri
Sets the redirect URI- Parameters:
redirectUri- the redirect URI
-
getRedirectUri
Gets the redirect URI- Returns:
- the redirect URI
-
setRequestedScope
Sets the scopes request by the client- Parameters:
requestedScope- the requested scopes
-
getRequestedScope
Gets the scopes request by the client- Returns:
- the requested scopes
-
setApprovedScope
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
Gets the scopes explicitly approved by the end user- Returns:
- the approved scopes
-
setSubject
Sets the user subject representing the end user- Parameters:
subject- the subject
-
getSubject
Gets the user subject representing the end user- Returns:
- the subject
-
getAudience
-
setAudience
-
getClientCodeChallenge
-
setClientCodeChallenge
-
getNonce
-
setNonce
-
isPreauthorizedTokenAvailable
public boolean isPreauthorizedTokenAvailable() -
setPreauthorizedTokenAvailable
public void setPreauthorizedTokenAvailable(boolean preauthorizedTokenAvailable) -
getExtraProperties
-
setExtraProperties
-
getResponseType
-
setResponseType
-
getClientCodeChallengeMethod
-
setClientCodeChallengeMethod
-