#import <WTLDeviceAttestationDelegate.h>
The protocol definition for the WTLDeviceAttestationDelegate.
Definition at line 49 of file WTLDeviceAttestationDelegate.h.
◆ deviceAttestation:completedForDevice:attestationDeviceInfo:error:
◆ deviceAttestation:failedForDevice:error:
◆ deviceAttestationCompletedForController:opaqueDeviceHandle:attestationDeviceInfo:error:
- (void) deviceAttestationCompletedForController: |
|
(WTLDeviceController *) |
controller |
opaqueDeviceHandle: |
|
(void *) |
opaqueDeviceHandle |
attestationDeviceInfo: |
|
(WTLDeviceAttestationDeviceInfo *) |
attestationDeviceInfo |
error: |
|
(macos(13.3)) |
|
|
|
(watchos(9.4)) |
|
|
|
(tvos(16.4)) |
API_AVAILABLE |
|
|
| |
|
optional |
Only one of the following delegate callbacks should be implemented.
If -deviceAttestationFailedForController:opaqueDeviceHandle:error: is implemented, then it will be called when device attestation fails, and the client can decide to continue or stop the commissioning.
If -deviceAttestationCompletedForController:opaqueDeviceHandle:attestationDeviceInfo:error: is implemented, then it will always be called when device attestation completes. Notify the delegate when device attestation completed with device info for additional verification. If this callback is implemented, continueCommissioningDevice on WTLDeviceController is expected to be called if commisioning should continue.
This allows the delegate to stop commissioning after examining the device info (DAC, PAI, CD).
- Parameters
-
controller | Controller corresponding to the commissioning process |
opaqueDeviceHandle | Handle of device being commissioned |
attestationDeviceInfo | Attestation information for the device |
error | NSError representing the error code on attestation failure. Nil if success. |
◆ deviceAttestationFailedForController:opaqueDeviceHandle:error:
- (void) deviceAttestationFailedForController: |
|
(WTLDeviceController *) |
controller |
opaqueDeviceHandle: |
|
(void *) |
opaqueDeviceHandle |
error: |
|
(macos(13.3)) |
|
|
|
(watchos(9.4)) |
|
|
|
(tvos(16.4)) |
API_AVAILABLE |
|
|
| |
|
optional |
Notify the delegate when device attestation fails. If this callback is implemented, continueCommissioningDevice on WTLDeviceController is expected to be called if commisioning should continue.
- Parameters
-
controller | Controller corresponding to the commissioning process |
opaqueDeviceHandle | Handle of device being commissioned |
error | NSError representing the error code for the failure |
The documentation for this protocol was generated from the following file: