Package com.yubico.yubikit.fido.ctap
Class FingerprintBioEnrollment.Context
java.lang.Object
com.yubico.yubikit.fido.ctap.FingerprintBioEnrollment.Context
- Enclosing class:
- FingerprintBioEnrollment
Convenience class for handling one fingerprint enrollment
-
Constructor Summary
ConstructorDescriptionContext
(FingerprintBioEnrollment bioEnrollment, Integer timeout, byte[] templateId, Integer remaining) -
Method Summary
-
Constructor Details
-
Context
public Context(FingerprintBioEnrollment bioEnrollment, @Nullable Integer timeout, @Nullable byte[] templateId, @Nullable Integer remaining)
-
-
Method Details
-
capture
@Nullable public byte[] capture(@Nullable com.yubico.yubikit.core.application.CommandState state) throws IOException, com.yubico.yubikit.core.application.CommandException, FingerprintBioEnrollment.CaptureError Capture a fingerprint sample.This call will block for up to timeout milliseconds (or indefinitely, if timeout not specified) waiting for the user to scan their fingerprint to collect one sample.
- Parameters:
state
- If needed, the state to provide control over the ongoing operation.- Returns:
- None, if more samples are needed, or the template ID if enrollment is completed.
- Throws:
IOException
- A communication error in the transport layer.com.yubico.yubikit.core.application.CommandException
- A communication error in the protocol layer.FingerprintBioEnrollment.CaptureError
- An error during fingerprint capture.
-
cancel
Cancels ongoing enrollment.- Throws:
IOException
com.yubico.yubikit.core.application.CommandException
-
getRemaining
- Returns:
- number of remaining captures for successful enrollment
-