public interface OwnerBioMatcher extends BioMatcher
OwnerBioMatcher
interface should be implemented by the applet
which owns the BioMatcher
. It extends the BioMatcher
interface and adds functionality to enroll one or more Biometric Template
Data containers.MATCH_NEEDS_MORE_DATA, MINIMUM_SUCCESSFUL_MATCH_SCORE
Modifier and Type | Method and Description |
---|---|
OwnerBioTemplateData |
getBioTemplateData(short index)
Gets the
OwnerBioTemplateData enrolled at the specified index. |
short |
getIndexOfLastMatchingBioTemplateData()
Gets the index of the last matching
BioTemplateData . |
void |
putBioTemplateData(short index,
BioTemplateData templateData)
Enrolls the provided
BioTemplateData at the specified index. |
void |
resetUnblockAndSetTryLimit(byte newTryLimit)
Resets the validated flag, unblocks the enrolled
OwnerBioTemplateData s, updates the
try limit value and resets the try counter to the try limit value. |
getBioType, getMaxNbOfBioTemplateData, getTriesRemaining, getVersion, initMatch, isInitialized, isValidated, match, reset
void putBioTemplateData(short index, BioTemplateData templateData) throws Bio1toNException, SecurityException
BioTemplateData
at the specified index. The
provided BioTemplateData
must be loaded/initialized.
This method has to be called several times to add all the required
BioTemplateData
for 1 to N matching
If the method is called with the same index several times, the former
BioTemplateData
added to that index is replaced by the new one. If
the method is called with a null
reference for the BioTemplateData
, the
former BioTemplateData
is removed.
When OwnerBioTemplateData
are already enrolled with a OwnerBioMatcher
modifying its data will impact the OwnerBioMatcher
(stored as reference).index
- the index where the BioTemplateData
must be added.templateData
- the BioTemplateData
to enroll.Bio1toNException
- with the following reason codes:
Bio1toNException.ILLEGAL_VALUE
if the offset is invalid.Bio1toNException.NO_BIO_TEMPLATE_ENROLLED
if the provided BioTemplateData
is uninitialized.Bio1toNException.MISMATCHED_BIO_TYPE
if the type of the
provided BioTemplateData
does not match that of this
BioMatcher
.SecurityException
- if the reference template is not own by the
caller.void resetUnblockAndSetTryLimit(byte newTryLimit) throws Bio1toNException
OwnerBioTemplateData
s, updates the
try limit value and resets the try counter to the try limit value.
Matching flags of an OwnerBioMatcher
are independent of the matching
flags of OwnerBioTemplateData
s enrolled with it.newTryLimit
- the number of tries allowed before the 1toN template is
blocked. newTryLimit
must be at least 1.Bio1toNException
- with the following reason codes:
Bio1toNException.ILLEGAL_VALUE
if the newTryLimit
parameter is less than 1.short getIndexOfLastMatchingBioTemplateData()
BioTemplateData
.getIndexOfLastMatchingBioTemplateData
in interface BioMatcher
BioTemplateData
.Bio1toNException
- with the following reason codes:
Bio1toNException.ILLEGAL_USE
if no match was performed since
last reset.OwnerBioTemplateData getBioTemplateData(short index)
OwnerBioTemplateData
enrolled at the specified index.
This method is used to retrieve the 'orginal' OwnerBioTemplateData
in order to change its data using the init
,
update
,
doFinal
methods.getBioTemplateData
in interface BioMatcher
index
- the index of the OwnerBioTemplateData
to retrieve.null
if no OwnerBioTemplateData
is available at
the specified index.Copyright © 1998, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms