DeviceCredentials class abstract
A JSON value representing the device credentials.
Properties:
- id - The Id is automatically generated during device creation. Use 'getDeviceCredentialsByDeviceId' to obtain the id based on device id. Use 'updateDeviceCredentials' to update device credentials.
- createdTime - Timestamp of the device credentials creation, in milliseconds
- deviceId - JSON object with the device Id.
- credentialsType - Type of the credentials
- credentialsId - Unique Credentials Id per platform instance. Used to lookup credentials from the database. By default, new access token for your device. Depends on the type of the credentials.
- credentialsValue - Value of the credentials. Null in case of ACCESS_TOKEN credentials type. Base64 value in case of X509_CERTIFICATE. Complex object in case of MQTT_BASIC and LWM2M_CREDENTIALS
- version
- Annotations
-
- @BuiltValue.new()
Constructors
- DeviceCredentials([void updates(DeviceCredentialsBuilder b)])
-
factory
Properties
- createdTime → int?
-
Timestamp of the device credentials creation, in milliseconds
no setter
- credentialsId → String
-
Unique Credentials Id per platform instance. Used to lookup credentials from the database. By default, new access token for your device. Depends on the type of the credentials.
no setter
- credentialsType → DeviceCredentialsType?
-
Type of the credentials
no setter
- credentialsValue → String?
-
Value of the credentials. Null in case of ACCESS_TOKEN credentials type. Base64 value in case of X509_CERTIFICATE. Complex object in case of MQTT_BASIC and LWM2M_CREDENTIALS
no setter
- deviceId → DeviceId
-
JSON object with the device Id.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → DeviceCredentialsId
-
The Id is automatically generated during device creation. Use 'getDeviceCredentialsByDeviceId' to obtain the id based on device id. Use 'updateDeviceCredentials' to update device credentials.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → int?
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(DeviceCredentialsBuilder)) → DeviceCredentials -
Rebuilds the instance.
inherited
-
toBuilder(
) → DeviceCredentialsBuilder -
Converts the instance to a builder
B.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
serializer
→ Serializer<
DeviceCredentials> -
no setter