Class ClientCredentialsOAuth2ClientFilterHeaplet

java.lang.Object
org.forgerock.openig.heap.GenericHeaplet
org.forgerock.openig.filter.oauth2.client.ClientCredentialsOAuth2ClientFilterHeaplet
All Implemented Interfaces:
Heaplet

public class ClientCredentialsOAuth2ClientFilterHeaplet extends GenericHeaplet
Creates and initializes a Filter supporting the transformation of client credentials to an access_token. This filter also supports refresh of the access_token as required. The configured client credentials are used to obtain the access_token, which is then added into the request's Authorization header.

The ClientCredentialsOAuth2ClientFilterHeaplet has the following configuration:

 {
      "type": "ClientCredentialsOAuth2ClientFilter",
      "config": {
        <inherited configuration settings from BearerTokenOAuth2ClientFilterHeaplet>
      }
 }
 
 
See Also:
  • Field Details

  • Constructor Details

    • ClientCredentialsOAuth2ClientFilterHeaplet

      public ClientCredentialsOAuth2ClientFilterHeaplet()
  • Method Details

    • createGrantTypeHandler

      protected GrantTypeHandler createGrantTypeHandler()
    • create

      public Object create() throws HeapException
      Description copied from class: GenericHeaplet
      Called to request the heaplet create an object. Called by Heaplet.create(Name, JsonValue, Heap) after initializing the protected field members. Implementations should parse configuration but not acquire resources, start threads, or log any initialization messages. These tasks should be performed by the GenericHeaplet.start() method.
      Specified by:
      create in class GenericHeaplet
      Returns:
      The created object.
      Throws:
      HeapException - if an exception occurred during creation of the heap object or any of its dependencies.
    • clientId

      protected String clientId()
    • scopes

      protected Set<String> scopes()