Class AuthorizationCodeGrant
- java.lang.Object
-
- io.micronaut.security.oauth2.grants.AuthorizationCodeGrant
-
- All Implemented Interfaces:
AsMap
,SecureGrant
@Introspected public class AuthorizationCodeGrant extends java.lang.Object implements SecureGrant, AsMap
Authorization Code Grant Request.- Since:
- 1.2.0
- Author:
- Sergio del Amo
- See Also:
- Access Token Request
-
-
Constructor Summary
Constructors Constructor Description AuthorizationCodeGrant()
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClientId()
java.lang.String
getClientSecret()
java.lang.String
getCode()
java.lang.String
getGrantType()
java.lang.String
getRedirectUri()
void
setClientId(java.lang.String clientId)
Sets the client id in the grant.void
setClientSecret(java.lang.String clientSecret)
Sets the client secret in the grant.void
setCode(java.lang.String code)
void
setGrantType(java.lang.String grantType)
void
setRedirectUri(java.lang.String redirectUri)
java.util.Map<java.lang.String,java.lang.String>
toMap()
-
-
-
Method Detail
-
getGrantType
@Nonnull public java.lang.String getGrantType()
- Returns:
- OAuth 2.0 Grant Type.
-
setGrantType
public void setGrantType(@Nonnull java.lang.String grantType)
- Parameters:
grantType
- OAuth 2.0 Grant Type.
-
getClientId
@Nonnull public java.lang.String getClientId()
- Returns:
- The application's Client identifier.
-
setClientId
public void setClientId(@Nonnull java.lang.String clientId)
Description copied from interface:SecureGrant
Sets the client id in the grant.- Specified by:
setClientId
in interfaceSecureGrant
- Parameters:
clientId
- Application's Client identifier.
-
setClientSecret
public void setClientSecret(java.lang.String clientSecret)
Description copied from interface:SecureGrant
Sets the client secret in the grant.- Specified by:
setClientSecret
in interfaceSecureGrant
- Parameters:
clientSecret
- Application's Client clientSecret.
-
getClientSecret
public java.lang.String getClientSecret()
- Returns:
- The application's Client clientSecret.
-
getRedirectUri
@Nonnull public java.lang.String getRedirectUri()
- Returns:
- Redirection URI to which the response will be sent.
-
setRedirectUri
public void setRedirectUri(@Nonnull java.lang.String redirectUri)
- Parameters:
redirectUri
- Redirection URI to which the response will be sent.
-
getCode
@Nonnull public java.lang.String getCode()
- Returns:
- An authorization code.
-
setCode
public void setCode(@Nonnull java.lang.String code)
- Parameters:
code
- An authorization code.
-
-