Package org.forgerock.secrets.oauth2
Class ClientCredentialsGrantTypeHandler
- java.lang.Object
-
- org.forgerock.secrets.oauth2.GrantTypeHandler
-
- org.forgerock.secrets.oauth2.ClientCredentialsGrantTypeHandler
-
public class ClientCredentialsGrantTypeHandler extends GrantTypeHandler
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
Constructors Constructor Description ClientCredentialsGrantTypeHandler(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, toString
-
-
-
-
Constructor Detail
-
ClientCredentialsGrantTypeHandler
public ClientCredentialsGrantTypeHandler(String clientId, Collection<String> scope)
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
public ClientCredentialsGrantTypeHandler(String clientId)
Initialises the grant type handler with the given client id and default scope.- Parameters:
clientId
- the client id.
-
-