getEnrollmentExchangeTokens
Protected operation to retrieve a batch of short-lived exchange token QR codes for an enrollment started via spawnEnrollment. The host app should display these QR codes one at a time, always showing the one closest to expiry, so a second device can scan and complete the enrollment.
This is a protected operation — the SDK must be unlocked before calling this method.
Parameters
the user id of the enrolled account for which the enrollment is created.
the activation code returned by spawnEnrollment.
total number of exchange tokens to generate. Min: 1, max: 50.
lifetime of a single exchange token in seconds.
Throws
if the SDK is locked.
if the SDK is currently blocked by any blocking operation.
if the SDK fails to sign the API request.
if the SDK cannot access the necessary cryptographic material for this operation.
if the Keystore fails to perform the necessary cryptographic operations.
if the API request fails. Refer to FTApiException subtypes for more specific errors.