Class DeviceCredentials

java.lang.Object
com.auth0.json.mgmt.DeviceCredentials

public class DeviceCredentials extends Object
Class that represents an Auth0 Device Credentials object. Related to the DeviceCredentialsEntity entity.
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Getter for the unique identifier of the device credentials.
      Returns:
      the id.
    • getDeviceName

      public String getDeviceName()
      Getter for the device name.
      Returns:
      the device name.
    • setDeviceName

      public void setDeviceName(String deviceName)
      Setter for the device name.
      Parameters:
      deviceName - the device name to set.
    • getType

      public String getType()
      Getter for the type of credential. Either 'public_key', 'refresh_token' or 'rotating_refresh_token'.
      Returns:
      the type of credential.
    • setType

      public void setType(String type)
      Setter for the type of credential. Either 'public_key', 'refresh_token' or 'rotating_refresh_token'.
      Parameters:
      type - the type of credential to set.
    • setValue

      public void setValue(String value)
      Setter for the base64 encoded string with the value of the credential.
      Parameters:
      value - the value of the credential to set.
    • getDeviceId

      public String getDeviceId()
      Getter for the unique device identifier.
      Returns:
      the unique device identifier.
    • setDeviceId

      public void setDeviceId(String deviceId)
      Setter for the unique device identifier.
      Parameters:
      deviceId - the unique device identifier to set.
    • setClientId

      public void setClientId(String clientId)
      Setter for the client id of the application for which the credential will be created.
      Parameters:
      clientId - the application's client id to set.
    • getClientId

      public String getClientId()
      Getter for the client id of the application for which the credential is created.
      Returns:
      the client id.
    • getUserId

      public String getUserId()
      Getter for the user id of the device
      Returns:
      the user if
    • setUserId

      public void setUserId(String userId)
      Setter for the user id of the devices to retrieve
      Parameters:
      userId - the user id to set.