Class AuthorizationCodeGrant
java.lang.Object
org.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeGrant
- All Implemented Interfaces:
Serializable,AccessTokenGrant
- Direct Known Subclasses:
JwtRequestCodeGrant,ServerAuthorizationCodeGrant
Base Authorization Code Grant representation, captures the code
and the redirect URI this code has been returned to, visible to the client
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationCodeGrant(String code) AuthorizationCodeGrant(String code, URI uri) -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Gets the authorization codeGets the redirect URIgetType()Returns the token grant type, example, "authorization_code"voidvoidsetCodeVerifier(String codeVerifier) voidsetRedirectUri(String redirectUri) Sets the redirect URI, if set then the client is expected to include the same URI during the access token requesttoMap()Returns the map containing public grant parameters; can be used by clients requesting the access tokens.
-
Constructor Details
-
AuthorizationCodeGrant
public AuthorizationCodeGrant() -
AuthorizationCodeGrant
-
AuthorizationCodeGrant
-
-
Method Details
-
setRedirectUri
Sets the redirect URI, if set then the client is expected to include the same URI during the access token request- Parameters:
redirectUri- redirect URI
-
getRedirectUri
Gets the redirect URI- Returns:
- the redirect URI
-
getCode
Gets the authorization code- Returns:
- the code
-
setCode
-
getType
Returns the token grant type, example, "authorization_code"- Specified by:
getTypein interfaceAccessTokenGrant- Returns:
- the grant type
-
toMap
Returns the map containing public grant parameters; can be used by clients requesting the access tokens.- Specified by:
toMapin interfaceAccessTokenGrant- Returns:
- the grant parameters
-
getCodeVerifier
-
setCodeVerifier
-