Class ClientCredentialsGrant
- java.lang.Object
-
- io.micronaut.security.oauth2.grants.ClientCredentialsGrant
-
- All Implemented Interfaces:
AsMap
@Introspected public class ClientCredentialsGrant extends java.lang.Object implements AsMap
Client Credentials Grant.- Since:
- 1.2.0
- Author:
- Sergio del Amo
- See Also:
- Access Token Request
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KEY_GRANT_TYPE
static java.lang.String
KEY_SCOPES
-
Constructor Summary
Constructors Constructor Description ClientCredentialsGrant()
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getGrantType()
java.lang.String
getScope()
void
setScope(java.lang.String scope)
java.util.Map<java.lang.String,java.lang.String>
toMap()
-
-
-
Field Detail
-
KEY_GRANT_TYPE
public static final java.lang.String KEY_GRANT_TYPE
- See Also:
- Constant Field Values
-
KEY_SCOPES
public static final java.lang.String KEY_SCOPES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getGrantType
@Nonnull public java.lang.String getGrantType()
- Returns:
- client_credentials
-
getScope
@Nullable public java.lang.String getScope()
- Returns:
- Requested scope values for the access token.
-
setScope
public void setScope(@Nullable java.lang.String scope)
- Parameters:
scope
- Requested scope values for the access token.
-
-