Interface TokenProvider

All Known Implementing Classes:
SimpleTokenProvider

public interface TokenProvider
A TokenProvider is responsible for providing the token used when making authorized requests to the Auth0 Management API.
  • Method Details

    • getToken

      String getToken() throws Auth0Exception
      Responsible for obtaining a token for use with the ManagementAPI client for synchronous requests.
      Returns:
      the token required when making requests to the Auth0 Management API.
      Throws:
      Auth0Exception - if the token cannot be retrieved.
    • getTokenAsync

      CompletableFuture<String> getTokenAsync()
      Responsible for obtaining a token for use with the ManagementAPI client for asynchronous requests.
      Returns:
      a CompletableFuture with the token required when making requests to the Auth0 Management API.