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
FieldsFields inherited from class AbstractClientSecureGrant
clientId, clientSecretFields inherited from interface SecureGrant
KEY_CLIENT_ID, KEY_CLIENT_SECRET -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractClientSecureGrant
getClientId, getClientSecret, setClientId, setClientSecretMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SecureGrant
setClientId, setClientSecret
-
Field Details
-
KEY_SCOPES
- See Also:
-
-
Constructor Details
-
ClientCredentialsGrant
public ClientCredentialsGrant()
-
-
Method Details
-
getGrantType
- Specified by:
getGrantTypein classAbstractClientSecureGrant- Returns:
- Grant Type.
-
setGrantType
- Specified by:
setGrantTypein 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
-