SetDeviceLocker

SetDeviceLocker(DevLockInterface* dl) sets handle to the custom Device Locking object that application provides for Crypto SDK. The SDK will make use of this object to get device locking key (by calling GetKey() method) to lock credentials to the given device. If GetKey() returns empty (""), SDK does not perform any device locking.
aa82test
Description
SetDeviceLocker(DevLockInterface* dl) sets handle to the custom Device Locking object that application provides for Crypto SDK. The SDK will make use of this object to get device locking key (by calling GetKey() method) to lock credentials to the given device. If GetKey() returns empty (""), SDK does not perform any device locking.
API Signature
CAMOBILEOTPCRYPTOSDK_API SDK_STATUS SetDeviceLocker(IDeviceLock* deviceLocker)
Parameters
deviceLocker [in]
An instance of the object derived from IDeviceLocker abstract class
Return Values
Return Value
Inference
SDKSTATUS_OK
Successful
SDKSTATUS_BADPARAM
IDeviceLocker* is NULL
SDKSTATUS_FAILED
GetKey() returns NULL
Remarks
IDeviceLocker is interface as mentioned in “IDeviceLocker.h”.