Package com.auth0.client.mgmt
Class UserBlocksEntity
java.lang.Object
com.auth0.client.mgmt.UserBlocksEntity
Class that provides an implementation of the User Blocks methods of the Management API as defined in https://auth0.com/docs/api/management/v2#!/User_Blocks
This class is not thread-safe.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final okhttp3.HttpUrl
protected final Auth0HttpClient
protected final TokenProvider
-
Method Summary
Modifier and TypeMethodDescriptionDelete any existing User Blocks.deleteByIdentifier
(String identifier) Delete any existing User Blocks for a given identifier.Request all the User Blocks.getByIdentifier
(String identifier) Request all the User Blocks for a given identifier.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
-
getByIdentifier
Request all the User Blocks for a given identifier. A token with scope read:users is needed. See https://auth0.com/docs/api/management/v2#!/User_Blocks/get_user_blocks- Parameters:
identifier
- the identifier. Either a username, phone_number, or email.- Returns:
- a Request to execute.
-
deleteByIdentifier
Delete any existing User Blocks for a given identifier. A token with scope update:users is needed. See https://auth0.com/docs/api/management/v2#!/User_Blocks/delete_user_blocks- Parameters:
identifier
- the identifier. Either a username, phone_number, or email.- Returns:
- a Request to execute.
-
get
Request all the User Blocks. A token with scope read:users is needed. See https://auth0.com/docs/api/management/v2#!/User_Blocks/get_user_blocks_by_id- Parameters:
userId
- the user id.- Returns:
- a Request to execute.
-
delete
Delete any existing User Blocks. A token with scope update:users is needed. See https://auth0.com/docs/api/management/v2#!/User_Blocks/delete_user_blocks_by_id- Parameters:
userId
- the user id.- 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)
-