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 TypeMethodDescription@Nullable String@Nullable Stringabstract @NonNull StringvoidsetClientId(@Nullable String clientId) Sets the client id in the grant.voidsetClientSecret(@Nullable String clientSecret) Sets the client secret in the grant.abstract voidsetGrantType(@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:SecureGrantSets the client id in the grant.- Specified by:
setClientIdin interfaceSecureGrant- Parameters:
clientId- Application's Client identifier.
-
setClientSecret
Description copied from interface:SecureGrantSets the client secret in the grant.- Specified by:
setClientSecretin interfaceSecureGrant- Parameters:
clientSecret- Application's Client clientSecret.
-
getClientSecret
- Returns:
- The application's Client clientSecret.
-
toMap
-