enrollAccount
Enroll an account using the provided EnrollmentParams. This is a single entrypoint method for all configurations. However, there are restrictions as to what configurations can be used and when. Please see the EnrollmentParams documentation.
Parameters
a configuration for enrollment, depending on the input code and lock configuration.
See also
Throws
if the SDK is locked.
if the SDK is currently blocked by an operation updating DB accounts
if the SDK has been initialized for LockConfigurationType.SDK_PIN_WITH_BIOMETRICS_OPTIONAL and this is the very first enrollment and EnrollmentParams do not set com.futurae.sdk.public_api.account.model.EnrollAccountAndSetupSDKPin as the com.futurae.sdk.public_api.account.model.EnrollmentUseCase. In this case the com.futurae.sdk.public_api.account.model.EnrollAccountAndSetupSDKPin should have been used instead.
if the SDK is not initialized correctly.
if any of the specified arguments are invalid.
if the SDK cannot access necessary cryptographic material or perform cryptographic operations
if the API request fails. Refer to FTApiException subtypes for more specific errors.