Package org.forgerock.secrets.oauth2
Class ClientCredentialsGrantTypeHandler
java.lang.Object
org.forgerock.secrets.oauth2.GrantTypeHandler
org.forgerock.secrets.oauth2.ClientCredentialsGrantTypeHandler
A grant type handler that can retrieve an access token using the client_credentials grant type. Note that it is
assumed that the client credentials are already attached to the request, via a filter for instance.
-
Constructor Summary
ConstructorsConstructorDescriptionClientCredentialsGrantTypeHandler
(String clientId) Initialises the grant type handler with the given client id and default scope.ClientCredentialsGrantTypeHandler
(String clientId, Collection<String> scope) Initialises the grant type handler with the given client id and scope. -
Method Summary
Methods inherited from class org.forgerock.secrets.oauth2.GrantTypeHandler
getClientId, getGrantType, getScope, handle, toString
-
Constructor Details
-
ClientCredentialsGrantTypeHandler
Initialises the grant type handler with the given client id and scope.- Parameters:
clientId
- the client id.scope
- the scope of the request. May be null to request the default scope for this client.
-
ClientCredentialsGrantTypeHandler
Initialises the grant type handler with the given client id and default scope.- Parameters:
clientId
- the client id.
-