Interface DeviceInformationSync
- All Superinterfaces:
HttpOperation<DeviceInformationSync>
,Operation
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()
method.
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
.
Example:
private void fixDeviceInformationMismatches(Operations operations, Set<DeviceInformationMismatch> mismatches) { operations.deviceInformationSync() .mismatches(deviceInformationMismatches) .onResult(() -> { // handle the result }) .execute(); }
This is supported only when the backend uses nevisFIDO 7.2408.** or later.
This interface is experimental and can change in the future without notice.
-
Method Summary
Modifier and TypeMethodDescriptionmismatches
(Set<DeviceInformationMismatch> mismatches) Specifies the configuration mismatches to be fixed.onResult
(Consumer<DeviceInformationSyncResult> onResult) Specifies the object that will be invoked when the operation completes.Methods inherited from interface ch.nevis.mobile.sdk.api.operation.HttpOperation
requestHeaders
-
Method Details
-
mismatches
Specifies the configuration mismatches to be fixed.Providing the
DeviceInformationMismatch
is required.- Parameters:
mismatches
- the configuration mismatches- Returns:
- an
DeviceInformationSync
-
onResult
Specifies the object that will be invoked when the operation completes. This object will be invoked in the main/UI thread.Providing the object handling the result is required.
- Parameters:
onResult
- the object invoked with theDeviceInformationSyncResult
.- Returns:
- an
DeviceInformationSync
-