Class AbstractClientSecureGrant
java.lang.Object
io.micronaut.security.oauth2.grants.AbstractClientSecureGrant
- All Implemented Interfaces:
AsMap
,SecureGrant
- Direct Known Subclasses:
AuthorizationCodeGrant
,ClientCredentialsGrant
,PasswordGrant
Base class for
SecureGrant
implementations.- Since:
- 3.4.2
- Author:
- Álvaro Sánchez-Mariscal
-
Field Summary
FieldsFields inherited from interface io.micronaut.security.oauth2.grants.SecureGrant
KEY_CLIENT_ID, KEY_CLIENT_SECRET
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
void
setClientId
(String clientId) Sets the client id in the grant.void
setClientSecret
(String clientSecret) Sets the client secret in the grant.abstract void
setGrantType
(String grantType) toMap()
-
Field Details
-
clientId
-
clientSecret
-
-
Constructor Details
-
AbstractClientSecureGrant
public AbstractClientSecureGrant()
-
-
Method Details
-
getGrantType
- Returns:
- OAuth 2.0 Grant Type.
-
setGrantType
- Parameters:
grantType
- OAuth 2.0 Grant Type.
-
getClientId
- Returns:
- The application's Client identifier.
-
setClientId
Description copied from interface:SecureGrant
Sets the client id in the grant.- Specified by:
setClientId
in interfaceSecureGrant
- Parameters:
clientId
- Application's Client identifier.
-
setClientSecret
Description copied from interface:SecureGrant
Sets the client secret in the grant.- Specified by:
setClientSecret
in interfaceSecureGrant
- Parameters:
clientSecret
- Application's Client clientSecret.
-
getClientSecret
- Returns:
- The application's Client clientSecret.
-
toMap
-