Package com.auth0.client.mgmt
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 Summary
Modifier and TypeMethodDescriptiongetToken()Responsible for obtaining a token for use with theManagementAPIclient for synchronous requests.Responsible for obtaining a token for use with theManagementAPIclient for asynchronous requests.
-
Method Details
-
getToken
Responsible for obtaining a token for use with theManagementAPIclient 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 theManagementAPIclient for asynchronous requests.- Returns:
- a
CompletableFuturewith the token required when making requests to the Auth0 Management API.
-