Package com.auth0.client.mgmt
Class GrantsEntity
java.lang.Object
com.auth0.client.mgmt.GrantsEntity
Class that provides an implementation of the Grants methods of the Management API as defined in https://auth0.com/docs/api/management/v2#!/Grants/
This class is not thread-safe.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final okhttp3.HttpUrlprotected final Auth0HttpClientprotected final TokenProvider -
Method Summary
Modifier and TypeMethodDescriptionDelete an existing Grant.Deletes all Grants of a given user.list(String userId, GrantsFilter filter) Request all Grants.protected <T> Request<T>request(HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> target, Consumer<com.auth0.client.mgmt.RequestBuilder<T>> customizer) 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 Grants. A token with scope read:grants is needed See https://auth0.com/docs/api/management/v2#!/Grants/get_grants- Parameters:
userId- The user id of the grants to retrievefilter- the filter to use. Can be null.- Returns:
- a Request to execute.
-
delete
Delete an existing Grant. A token with scope delete:grants is needed. See https://auth0.com/docs/api/management/v2#!/Grants/delete_grants_by_id- Parameters:
grantId- The id of the grant to delete.- Returns:
- a Request to execute.
-
deleteAll
Deletes all Grants of a given user. A token with scope delete:grants is needed. See https://auth0.com/docs/api/management/v2#!/Grants/delete_grants_by_id- Parameters:
userId- The id of the user whose grants are deleted.- 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)
-