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.StringgetClientId()java.lang.StringgetClientSecret()java.lang.StringgetCode()java.lang.StringgetGrantType()java.lang.StringgetRedirectUri()voidsetClientId(java.lang.String clientId)Sets the client id in the grant.voidsetClientSecret(java.lang.String clientSecret)Sets the client secret in the grant.voidsetCode(java.lang.String code)voidsetGrantType(java.lang.String grantType)voidsetRedirectUri(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:SecureGrantSets the client id in the grant.- Specified by:
setClientIdin interfaceSecureGrant- Parameters:
clientId- Application's Client identifier.
-
setClientSecret
public void setClientSecret(java.lang.String clientSecret)
Description copied from interface:SecureGrantSets the client secret in the grant.- Specified by:
setClientSecretin 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.
-
-