2️⃣ Enrollment
val configuration = BiomEnrollConfig()
Keyless.enroll(
configuration = configuration,
onCompletion = { result ->
when (result) {
is Keyless.KeylessResult.Success -> Log.d("KeylessSDK ", "Enroll success - userId ${result.value.keylessId}")
is Keyless.KeylessResult.Failure -> Log.d("KeylessSDK ", "Enroll failure - error code ${result.error.code}")
}
}
)let configuration = BiomEnrollConfig()
Keyless.enroll(
configuration: configuration,
onCompletion: { result in
switch result {
case .success(let enrollmentSuccess):
print("Enrollment finished successfully. UserID: \(enrollmentSuccess.keylessId)")
case .failure(let error):
print("Enrollment finished with error: \(error.message)
}
})Enrollment configuration
public data class BiomEnrollConfig(
public val cameraDelaySeconds: Int = 2,
public val jwtSigningInfo: JwtSigningInfo?,
public val livenessConfiguration: LivenessSettings.LivenessConfiguration = LEVEL_1,
public val livenessEnvironmentAware: Boolean = true,
public val operationInfo: OperationInfo?,
public val shouldRetrieveEnrollmentFrame: Boolean = false,
public val showSuccessFeedback: Boolean = true,
public val showInstructionsScreen: Boolean = true,
public val showFailureFeedback: Boolean = true,
public val generatingClientState: ClientStateType? = null,
public val clientState: String? = null,
public val savingSecret: KeylessSecret? = null,
public val deletingSecret: KeylessSecret.Identifier? = null,
public val retrievingSecret: KeylessSecret.Identifier? = null,
public val shouldRetrieveSecretIDs: Boolean = false,
public val presentation: PresentationStyle = PresentationStyle.FULL_SCREEN
)public struct BiomEnrollConfig {
public let cameraDelaySeconds: Int
public let customSecret: String?
public let jwtSigningInfo: JwtSigningInfo?
public let livenessConfiguration: Keyless.LivenessConfiguration
public let livenessEnvironmentAware: Bool
public let operationInfo: Keyless.OperationInfo?
public let shouldReturnEnrollmentFrame: Bool
public let showSuccessFeedback: Bool,
public let showInstructionsScreen: Bool,
public let showFailureFeedback: Bool,
public let generatingClientState: ClientStateType?,
public let clientState: String?,
public let deletingSecret: KeylessSecret.Identifier?
public let retrievingSecret: KeylessSecret.Identifier?
public let shouldRetrieveSecretIDs: Bool
public let presentationStyle: PresentationStyle
}Enrollment success result
Delaying the Keyless evaluation/decision
Secret management
JWT Signing info
Liveness Settings
Operation info
Client State
Enrollment Frame
Enrollment circuits
Presentation Style
Last updated
Was this helpful?