Package com.auth0.client.mgmt
Class ClientsEntity
java.lang.Object
com.auth0.client.mgmt.ClientsEntity
Class that provides an implementation of the Application methods of the Management API as defined in https://auth0.com/docs/api/management/v2#!/Clients
This class is not thread-safe.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final okhttp3.HttpUrlprotected final Auth0HttpClientprotected final TokenProvider -
Method Summary
Modifier and TypeMethodDescriptionCreate a new Application.createCredential(String clientId, Credential credential) Creates an Application's client credential.Delete an existing Application.deleteCredential(String clientId, String credentialId) Deletes a client credential.Request an Application.get(String clientId, FieldsFilter filter) Request an Application.getCredential(String clientId, String credentialId) Get a client credentials object.list(ClientFilter filter) Request all the Applications.listCredentials(String clientId) Get the client credentials associated with this application.protected <T> Request<T>request(HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> target, Consumer<com.auth0.client.mgmt.RequestBuilder<T>> customizer) rotateSecret(String clientId) Rotates an Application's client secret.Update an existing Application.voidRequest(HttpMethod method, Consumer<com.auth0.client.mgmt.RequestBuilder<Void>> customizer)
-
Field Details
-
client
-
baseUrl
protected final okhttp3.HttpUrl baseUrl -
tokenProvider
-
-
Method Details
-
list
Request all the Applications. A token with scope read:clients is needed. If you also need the client_secret and encryption_key attributes the token must have read:client_keys scope. See https://auth0.com/docs/api/management/v2#!/Clients/get_clients- Parameters:
filter- the filter to use. Can be null.- Returns:
- a Request to execute.
-
get
Request an Application. A token with scope read:clients is needed. If you also need the client_secret and encryption_key attributes the token must have read:client_keys scope. See https://auth0.com/docs/api/management/v2#!/Clients/get_clients_by_id- Parameters:
clientId- the application's client id.- Returns:
- a Request to execute.
-
get
Request an Application. A token with scope read:clients is needed. If you also need the client_secret and encryption_key attributes the token must have read:client_keys scope. See https://auth0.com/docs/api/management/v2#!/Clients/get_clients_by_id- Parameters:
clientId- the application's client id.filter- optional filter to restrict fields (to be included/excluded in response)- Returns:
- a Request to execute.
-
create
Create a new Application. A token with scope create:clients is needed. See https://auth0.com/docs/api/management/v2#!/Clients/post_clients- Parameters:
client- the application data to set.- Returns:
- a Request to execute.
-
delete
Delete an existing Application. A token with scope delete:clients is needed. See https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id- Parameters:
clientId- the application's client id.- Returns:
- a Request to execute.
-
update
Update an existing Application. A token with scope update:clients is needed. If you also need to update the client_secret and encryption_key attributes the token must have update:client_keys scope. See https://auth0.com/docs/api/management/v2#!/Clients/patch_clients_by_id- Parameters:
clientId- the application's client id.client- the application data to set.- Returns:
- a Request to execute.
-
rotateSecret
Rotates an Application's client secret. A token with scope update:client_keys is needed. Note that the generated secret is NOT base64 encoded. See https://auth0.com/docs/api/management/v2#!/Clients/post_rotate_secret- Parameters:
clientId- the application's client id.- Returns:
- a Request to execute.
-
createCredential
Creates an Application's client credential. A token with scopecreate:client_credentialsis required.- Parameters:
clientId- the application's client id.credential- the credential to create.- Returns:
- a Request to execute.
-
listCredentials
Get the client credentials associated with this application. A token with scoperead:client_credentialsis required.- Parameters:
clientId- the ID of the application- Returns:
- a request to execute.
-
getCredential
Get a client credentials object. A token with scoperead:client_credentialsis required.- Parameters:
clientId- the ID of the application.credentialId- the ID of the credential to retrieve.- Returns:
- a request to execute.
-
deleteCredential
Deletes a client credential. A token with scope is required.- Parameters:
clientId- the ID of the application.credentialId- the ID of the credential to delete- Returns:
- a request to execute.
-
voidRequest
protected Request<Void> voidRequest(HttpMethod method, Consumer<com.auth0.client.mgmt.RequestBuilder<Void>> customizer) -
request
protected <T> Request<T> request(HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> target, Consumer<com.auth0.client.mgmt.RequestBuilder<T>> customizer)
-