Package com.auth0.json.mgmt
Class DeviceCredentials
java.lang.Object
com.auth0.json.mgmt.DeviceCredentials
Class that represents an Auth0 Device Credentials object. Related to the
DeviceCredentialsEntity
entity.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the client id of the application for which the credential is created.Getter for the unique device identifier.Getter for the device name.getId()
Getter for the unique identifier of the device credentials.getType()
Getter for the type of credential.Getter for the user id of the devicevoid
setClientId
(String clientId) Setter for the client id of the application for which the credential will be created.void
setDeviceId
(String deviceId) Setter for the unique device identifier.void
setDeviceName
(String deviceName) Setter for the device name.void
Setter for the type of credential.void
Setter for the user id of the devices to retrievevoid
Setter for the base64 encoded string with the value of the credential.
-
Constructor Details
-
DeviceCredentials
-
-
Method Details
-
getId
Getter for the unique identifier of the device credentials.- Returns:
- the id.
-
getDeviceName
Getter for the device name.- Returns:
- the device name.
-
setDeviceName
Setter for the device name.- Parameters:
deviceName
- the device name to set.
-
getType
Getter for the type of credential. Either 'public_key', 'refresh_token' or 'rotating_refresh_token'.- Returns:
- the type of credential.
-
setType
Setter for the type of credential. Either 'public_key', 'refresh_token' or 'rotating_refresh_token'.- Parameters:
type
- the type of credential to set.
-
setValue
Setter for the base64 encoded string with the value of the credential.- Parameters:
value
- the value of the credential to set.
-
getDeviceId
Getter for the unique device identifier.- Returns:
- the unique device identifier.
-
setDeviceId
Setter for the unique device identifier.- Parameters:
deviceId
- the unique device identifier to set.
-
setClientId
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
Getter for the client id of the application for which the credential is created.- Returns:
- the client id.
-
getUserId
Getter for the user id of the device- Returns:
- the user if
-
setUserId
Setter for the user id of the devices to retrieve- Parameters:
userId
- the user id to set.
-