Class AbstractClientSecureGrant
- java.lang.Object
-
- io.micronaut.security.oauth2.grants.AbstractClientSecureGrant
-
- All Implemented Interfaces:
AsMap,SecureGrant
- Direct Known Subclasses:
AuthorizationCodeGrant,ClientCredentialsGrant,PasswordGrant
public abstract class AbstractClientSecureGrant extends java.lang.Object implements SecureGrant, AsMap
Base class forSecureGrantimplementations.- Since:
- 3.4.2
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringclientIdprotected java.lang.StringclientSecret-
Fields inherited from interface io.micronaut.security.oauth2.grants.SecureGrant
KEY_CLIENT_ID, KEY_CLIENT_SECRET
-
-
Constructor Summary
Constructors Constructor Description AbstractClientSecureGrant()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClientId()java.lang.StringgetClientSecret()abstract java.lang.StringgetGrantType()voidsetClientId(java.lang.String clientId)Sets the client id in the grant.voidsetClientSecret(java.lang.String clientSecret)Sets the client secret in the grant.abstract voidsetGrantType(java.lang.String grantType)java.util.Map<java.lang.String,java.lang.String>toMap()
-
-
-
Method Detail
-
getGrantType
@NonNull public abstract java.lang.String getGrantType()
- Returns:
- OAuth 2.0 Grant Type.
-
setGrantType
public abstract void setGrantType(@NonNull java.lang.String grantType)- Parameters:
grantType- OAuth 2.0 Grant Type.
-
getClientId
@Nullable public java.lang.String getClientId()
- Returns:
- The application's Client identifier.
-
setClientId
public void setClientId(@Nullable 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(@Nullable 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
@Nullable public java.lang.String getClientSecret()
- Returns:
- The application's Client clientSecret.
-
-