Class AuthorizationCodeGrant
java.lang.Object
io.micronaut.security.oauth2.grants.AbstractClientSecureGrant
io.micronaut.security.oauth2.grants.AuthorizationCodeGrant
- All Implemented Interfaces:
 AsMap,SecureGrant
@Introspected
public class AuthorizationCodeGrant
extends AbstractClientSecureGrant
implements SecureGrant, AsMap
Authorization Code Grant Request.
- Since:
 - 1.2.0
 - Author:
 - Sergio del Amo
 - See Also:
 
- 
Field Summary
Fields inherited from class io.micronaut.security.oauth2.grants.AbstractClientSecureGrant
clientId, clientSecretFields inherited from interface io.micronaut.security.oauth2.grants.SecureGrant
KEY_CLIENT_ID, KEY_CLIENT_SECRET - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetCode()voidvoidsetCodeVerifier(String codeVerifier) voidsetGrantType(String grantType) voidsetRedirectUri(String redirectUri) toMap()Methods inherited from class io.micronaut.security.oauth2.grants.AbstractClientSecureGrant
getClientId, getClientSecret, setClientId, setClientSecretMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.security.oauth2.grants.SecureGrant
setClientId, setClientSecret 
- 
Constructor Details
- 
AuthorizationCodeGrant
public AuthorizationCodeGrant() 
 - 
 - 
Method Details
- 
getGrantType
- Specified by:
 getGrantTypein classAbstractClientSecureGrant- Returns:
 - OAuth 2.0 Grant Type.
 
 - 
setGrantType
- Specified by:
 setGrantTypein classAbstractClientSecureGrant- Parameters:
 grantType- OAuth 2.0 Grant Type.
 - 
getRedirectUri
- Returns:
 - Redirection URI to which the response will be sent.
 
 - 
setRedirectUri
- Parameters:
 redirectUri- Redirection URI to which the response will be sent.
 - 
getCode
- Returns:
 - An authorization code.
 
 - 
setCode
- Parameters:
 code- An authorization code.
 - 
getCodeVerifier
- Returns:
 - A PKCE code verifier.
 - Since:
 - 3.9.0
 
 - 
setCodeVerifier
- Parameters:
 codeVerifier- A PKCE code verifier.- Since:
 - 3.9.0
 
 - 
toMap
- Specified by:
 toMapin interfaceAsMap- Overrides:
 toMapin classAbstractClientSecureGrant- Returns:
 - this object as a Map
 
 
 -