Package com.auth0.client.mgmt
Class ManagementAPI
java.lang.Object
com.auth0.client.mgmt.ManagementAPI
Class that provides an implementation of the Management API methods defined in https://auth0.com/docs/api/management/v2.
To begin create an instance of
ManagementAPI(String, String) using the tenant domain and API token.
This class is not entirely thread-safe:
A new immutable OkHttpClient instance is being created with each instantiation, not sharing the thread pool
with any prior existing client instance.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionManagementAPI(String domain, String apiToken) Deprecated.ManagementAPI(String domain, String apiToken, HttpOptions options) Deprecated.Use theManagementAPI.Builderto configure and create instances. -
Method Summary
Modifier and TypeMethodDescriptionactions()Getter for the Actions entity.Getter for the Attack Protection EntityGetter for the Blacklists entity.branding()Getter for the Branding entity.Getter for the Client Grants entity.clients()Getter for the Applications entity.Getter for the Connections entity.Getter for the Device Credentials entity.Getter for the Email Provider entity.Getter for the Email Templates entity.grants()Getter for the Grants entity.guardian()Getter for the Guardian entity.jobs()Getter for the Jobs entity.keys()Getter for the Keys EntityGetter for the Log Events entity.Getter for the Log Streams entity.static ManagementAPI.BuildernewBuilder(String domain, String apiToken) Instantiate a newManagementAPI.Builderto configure and build a new ManagementAPI client.Getter for the Organizations entity.Getter for the RefreshTokens EntityGetter for the Resource Servers entity.roles()Getter for the Roles entity.rules()Getter for the Rules entity.Getter for the Rules Configs entity.sessions()Getter for the Sessions EntityvoidsetApiToken(String apiToken) Update the API token to use on new calls.stats()Getter for the Stats entity.tenants()Getter for the Tenants entity.tickets()Getter for the Tickets entity.Getter for the User Blocks entity.users()Getter for the Users entity.
-
Constructor Details
-
ManagementAPI
Deprecated.Use theManagementAPI.Builderto configure and create instances.Create an instance with the given tenant's domain and API token. In addition, accepts anHttpOptionsthat will be used to configure the networking client. See the Management API section in the readme or visit https://auth0.com/docs/api/management/v2/tokens to learn how to obtain a token.- Parameters:
domain- the tenant's domain.apiToken- the token to authenticate the calls with.options- configuration options for this client instance.- See Also:
-
ManagementAPI
Deprecated.Use theManagementAPI.Builderto configure and create instances.Create an instance with the given tenant's domain and API token. See the Management API section in the readme or visit https://auth0.com/docs/api/management/v2/tokens to learn how to obtain a token.- Parameters:
domain- the tenant's domain.apiToken- the token to authenticate the calls with.
-
-
Method Details
-
newBuilder
Instantiate a newManagementAPI.Builderto configure and build a new ManagementAPI client.- Parameters:
domain- the tenant's domain. Must be a non-null valid HTTPS domain.apiToken- the token to use when making API requests to the Auth0 Management API.- Returns:
- a Builder for further configuration.
-
setApiToken
Update the API token to use on new calls. This is useful when the token is about to expire or already has. Please note you'll need to obtain the corresponding entity again for this to apply. e.g. callclients()again. See the Management API section in the readme or visit https://auth0.com/docs/api/management/v2/tokens to learn how to obtain a token.- Parameters:
apiToken- the token to authenticate the calls with.
-
branding
Getter for the Branding entity.- Returns:
- the Branding entity.
-
clientGrants
Getter for the Client Grants entity.- Returns:
- the Client Grants entity.
-
clients
Getter for the Applications entity.- Returns:
- the Applications entity.
-
connections
Getter for the Connections entity.- Returns:
- the Connections entity.
-
deviceCredentials
Getter for the Device Credentials entity.- Returns:
- the Device Credentials entity.
-
grants
Getter for the Grants entity.- Returns:
- the Grants entity.
-
logEvents
Getter for the Log Events entity.- Returns:
- the Log Events entity.
-
logStreams
Getter for the Log Streams entity.- Returns:
- the Log Streams entity.
-
rules
Getter for the Rules entity.- Returns:
- the Rules entity.
-
rulesConfigs
Getter for the Rules Configs entity.- Returns:
- the Rules Configs entity.
-
userBlocks
Getter for the User Blocks entity.- Returns:
- the User Blocks entity.
-
users
Getter for the Users entity.- Returns:
- the Users entity.
-
blacklists
Getter for the Blacklists entity.- Returns:
- the Blacklists entity.
-
emailTemplates
Getter for the Email Templates entity.- Returns:
- the Email Templates entity.
-
emailProvider
Getter for the Email Provider entity.- Returns:
- the Email Provider entity.
-
guardian
Getter for the Guardian entity.- Returns:
- the Guardian entity.
-
stats
Getter for the Stats entity.- Returns:
- the Stats entity.
-
tenants
Getter for the Tenants entity.- Returns:
- the Tenants entity.
-
tickets
Getter for the Tickets entity.- Returns:
- the Tickets entity.
-
resourceServers
Getter for the Resource Servers entity.- Returns:
- the Resource Servers entity.
-
jobs
Getter for the Jobs entity.- Returns:
- the Jobs entity.
-
roles
Getter for the Roles entity.- Returns:
- the Roles entity.
-
organizations
Getter for the Organizations entity.- Returns:
- the Organizations entity.
-
actions
Getter for the Actions entity.- Returns:
- the Actions entity.
-
attackProtection
Getter for the Attack Protection Entity- Returns:
- the Attack Protection Entity
-
keys
Getter for the Keys Entity- Returns:
- the Keys Entity
-
refreshTokens
Getter for the RefreshTokens Entity- Returns:
- the RefreshTokens Entity
-
sessions
Getter for the Sessions Entity- Returns:
- the Sessions Entity
-
ManagementAPI.Builderto configure and create instances.