Previous Topic: Device LockingNext Topic: API Details


How to Perform Device Locking Using Custom Parameters

To lock an account to a device by using attributes other than the default attributes supported by CA Auth ID OTP SDK:

  1. Implement the getKey() method in the DeviceLock interface.

    The getKey() method returns the unique identifier of the device that you have requested.

  2. Invoke the setDeviceLock() method in the OTP class.

    The setDeviceLock() method locks the account to the device by using the parameters that are fetched by the getKey() method.