Class DeviceCredentialsEntity

java.lang.Object
com.auth0.client.mgmt.DeviceCredentialsEntity

public class DeviceCredentialsEntity extends Object
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:
ManagementAPI
  • Field Details

    • client

      protected final okhttp3.OkHttpClient client
    • baseUrl

      protected final okhttp3.HttpUrl baseUrl
    • apiToken

      protected final String apiToken
  • 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

      public Request<DeviceCredentials> create(DeviceCredentials deviceCredentials)
      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

      public Request delete(String deviceCredentialsId)
      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.