DeviceInformationSync class abstract
The operation that can be executed to correct the DeviceInformationMismatch problems that were found in a DeviceInformationCheck.
The operation works in a best-effort mode: it will try to resolve as many mismatches as possible and will report the errors that occurred (if any) through the DeviceInformationSyncResult.errors set.
WARNING
Some of the changes result in removal of credentials on both the server and
client side. Use this class with caution and understanding its implications.
The changes that will be applied are described on the documentation of each
DeviceInformationMismatch.
This is supported only when the backend uses nevisFIDO 7.2408.** or later.
Usage example:
[...]
Future<void> fixDeviceInformationMismatches({
required Operations operations,
required Set<DeviceInformationMismatch> mismatches,
}) async {
operations.deviceInformationSync()
.mismatches(mismatches)
.onResult((result) {
// handle the result
})
.execute();
}
[...]
- Inheritance
-
- Object
- HttpOperation<
DeviceInformationSync> - DeviceInformationSync
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
execute(
) → Future< void> -
Executes the operation asynchronously.
inherited
-
mismatches(
Set< DeviceInformationMismatch> mismatches) → DeviceInformationSync - Specifies the configuration mismatches to be fixed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onResult(
dynamic onResult(DeviceInformationSyncResult)) → DeviceInformationSync - Specifies the object that will be invoked when the operation completes.
-
requestHeaders(
RequestHeaders requestHeaders) → DeviceInformationSync -
Specifies the additional request headers that must be included in the HTTP
requests sent by the operation.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited