Class ClientCredentialsGrant
java.lang.Object
io.micronaut.security.oauth2.grants.AbstractClientSecureGrant
io.micronaut.security.oauth2.grants.ClientCredentialsGrant
- All Implemented Interfaces:
AsMap
,SecureGrant
@Introspected
public class ClientCredentialsGrant
extends AbstractClientSecureGrant
implements SecureGrant, AsMap
Client Credentials Grant.
- Since:
- 1.2.0
- Author:
- Sergio del Amo
- See Also:
-
Field Summary
Fields inherited from class io.micronaut.security.oauth2.grants.AbstractClientSecureGrant
clientId, clientSecret
Fields inherited from interface io.micronaut.security.oauth2.grants.SecureGrant
KEY_CLIENT_ID, KEY_CLIENT_SECRET
-
Constructor Summary
-
Method Summary
Methods inherited from class io.micronaut.security.oauth2.grants.AbstractClientSecureGrant
getClientId, getClientSecret, setClientId, setClientSecret
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.security.oauth2.grants.SecureGrant
setClientId, setClientSecret
-
Field Details
-
KEY_SCOPES
- See Also:
-
-
Constructor Details
-
ClientCredentialsGrant
public ClientCredentialsGrant()
-
-
Method Details
-
getGrantType
- Specified by:
getGrantType
in classAbstractClientSecureGrant
- Returns:
- Grant Type.
-
setGrantType
- Specified by:
setGrantType
in classAbstractClientSecureGrant
- Parameters:
grantType
- Grant type
-
getScope
- Returns:
- Requested scope values for the access token.
-
setScope
- Parameters:
scope
- Requested scope values for the access token.
-
toMap
- Specified by:
toMap
in interfaceAsMap
- Overrides:
toMap
in classAbstractClientSecureGrant
- Returns:
- this object as a Map
-