Package com.auth0.client.mgmt
Class SimpleTokenProvider
java.lang.Object
com.auth0.client.mgmt.SimpleTokenProvider
- All Implemented Interfaces:
TokenProvider
An implementation of
TokenProvider
that simply returns the token it is configured with. Tokens will not be renewed;
consumers are responsible for renewing the token when needed and then calling ManagementAPI.setApiToken(String)
with the
new token.-
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleTokenProvider
getToken()
Responsible for obtaining a token for use with theManagementAPI
client for synchronous requests.Responsible for obtaining a token for use with theManagementAPI
client for asynchronous requests.
-
Method Details
-
create
-
getToken
Description copied from interface:TokenProvider
Responsible for obtaining a token for use with theManagementAPI
client for synchronous requests.- Specified by:
getToken
in interfaceTokenProvider
- Returns:
- the token required when making requests to the Auth0 Management API.
-
getTokenAsync
Description copied from interface:TokenProvider
Responsible for obtaining a token for use with theManagementAPI
client for asynchronous requests.- Specified by:
getTokenAsync
in interfaceTokenProvider
- Returns:
- a
CompletableFuture
with the token required when making requests to the Auth0 Management API.
-