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
Fields inherited from interface io.micronaut.security.oauth2.grants.SecureGrant
KEY_CLIENT_ID, KEY_CLIENT_SECRET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
@Nullable String
abstract @NonNull String
void
setClientId
(@Nullable String clientId) Sets the client id in the grant.void
setClientSecret
(@Nullable String clientSecret) Sets the client secret in the grant.abstract void
setGrantType
(@NonNull 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
-