Package com.auth0.client.mgmt
Class DeviceCredentialsEntity
java.lang.Object
com.auth0.client.mgmt.DeviceCredentialsEntity
Class that provides an implementation of the Device Credentials methods of the Management API as defined in https://auth0.com/docs/api/management/v2#!/Device_Credentials
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 TypeMethodDescriptioncreate
(DeviceCredentials deviceCredentials) Create a Device Credentials.Delete an existing Device Credentials.list
(DeviceCredentialsFilter filter) Request all the Device Credentials.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 the Device Credentials. A token with scope read:device_credentials is needed. See https://auth0.com/docs/api/management/v2#!/Device_Credentials/get_device_credentials- Parameters:
filter
- the filter to use. Can be null.- Returns:
- a Request to execute.
-
create
Create a Device Credentials. A token with scope create:current_user_device_credentials is needed. See https://auth0.com/docs/api/management/v2#!/Device_Credentials/post_device_credentials- Parameters:
deviceCredentials
- the device credentials data to set.- Returns:
- a Request to execute.
-
delete
Delete an existing Device Credentials. A token with scope delete:device_credentials is needed. See https://auth0.com/docs/api/management/v2#!/Device_Credentials/post_device_credentials- Parameters:
deviceCredentialsId
- the device credentials 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)
-