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 SimpleTokenProvidergetToken()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
-
create
-
getToken
Description copied from interface:TokenProviderResponsible for obtaining a token for use with theManagementAPIclient for synchronous requests.- Specified by:
getTokenin interfaceTokenProvider- Returns:
- the token required when making requests to the Auth0 Management API.
-
getTokenAsync
Description copied from interface:TokenProviderResponsible for obtaining a token for use with theManagementAPIclient for asynchronous requests.- Specified by:
getTokenAsyncin interfaceTokenProvider- Returns:
- a
CompletableFuturewith the token required when making requests to the Auth0 Management API.
-