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 Details

    • 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.