Interface OwnerBioMatcher
- All Superinterfaces:
BioMatcher
The
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.- Since:
- 3.0.5
-
Field Summary
Fields inherited from interface BioMatcher
MATCH_NEEDS_MORE_DATA, MINIMUM_SUCCESSFUL_MATCH_SCOREModifier and TypeFieldDescriptionstatic final shortThis negative score value indicates that more data are needed to continue the matching session.static final shortThe minimum successful matching score. -
Method Summary
Modifier and TypeMethodDescriptiongetBioTemplateData(short index) Gets theOwnerBioTemplateDataenrolled at the specified index.shortGets the index of the last matchingBioTemplateData.voidputBioTemplateData(short index, BioTemplateData templateData) Enrolls the providedBioTemplateDataat the specified index.voidresetUnblockAndSetTryLimit(byte newTryLimit) Resets the validated flag, unblocks and updates the try limit value and resets the try counter to the try limit value.Methods inherited from interface BioMatcher
getBioType, getMaxNbOfBioTemplateData, getTriesRemaining, getVersion, initMatch, isInitialized, isValidated, match, resetModifier and TypeMethodDescriptionbyteGets the biometric type.shortGets the maximum number ofBioTemplateDatathat can be enrolled in thisBioMatcher.byteGets the number of times remaining that an incorrect candidate can be presented before theBioMatcheris blocked.shortgetVersion(byte[] dest, short offset) Gets the matching algorithm version and ID.shortinitMatch(byte[] candidate, short offset, short length) Initialize or re-initialize a biometric matching session.booleanIndicates whether thisBioMatcherhas been loaded with at least oneBioTemplateDataand is ready for matching functions.booleanIndicates whether a matching session was successfully since the last card reset or last call toBioMatcher.reset().shortmatch(byte[] candidate, short offset, short length) Continues a biometric matching session.voidreset()Resets thevalidatedflag associated with thisBioMatcher.
-
Method Details
-
putBioTemplateData
void putBioTemplateData(short index, BioTemplateData templateData) throws Bio1toNException, SecurityException Enrolls the providedBioTemplateDataat the specified index. The providedBioTemplateDatamust be loaded/initialized.This method has to be called several times to add all the required
BioTemplateDatafor 1 to N matchingIf the method is called with the same index several times, the former
BioTemplateDataadded to that index is replaced by the new one. If the method is called with anullreference for theBioTemplateData, the formerBioTemplateDatais removed. WhenOwnerBioTemplateDataare already enrolled with aOwnerBioMatchermodifying its data will impact theOwnerBioMatcher(stored as reference).Note: indexing starts at value « 1 » (« 0 » is an invalid value).
- Parameters:
index- the index where theBioTemplateDatamust be added.templateData- theBioTemplateDatato enroll.- Throws:
Bio1toNException- with the following reason codes:Bio1toNException.ILLEGAL_VALUEif the offset is invalid.Bio1toNException.NO_BIO_TEMPLATE_ENROLLEDif the providedBioTemplateDatais uninitialized.Bio1toNException.MISMATCHED_BIO_TYPEif the type of the providedBioTemplateDatadoes not match that of thisBioMatcher.
SecurityException- if the reference template is not own by the caller.
-
resetUnblockAndSetTryLimit
Resets the validated flag, unblocks and updates the try limit value and resets the try counter to the try limit value.- Parameters:
newTryLimit- the number of tries allowed before the 1toN template is blocked.newTryLimitmust be at least 1.- Throws:
Bio1toNException- with the following reason codes:Bio1toNException.ILLEGAL_VALUEif thenewTryLimitparameter is less than 1.
-
getIndexOfLastMatchingBioTemplateData
short getIndexOfLastMatchingBioTemplateData()Gets the index of the last matchingBioTemplateData.Note: indexing starts at value « 1 » (« 0 » is an invalid value).
- Specified by:
getIndexOfLastMatchingBioTemplateDatain interfaceBioMatcher- Returns:
- the index of the last matching
BioTemplateData. - Throws:
Bio1toNException- with the following reason codes:Bio1toNException.ILLEGAL_USEif no match was performed since last reset.
-
getBioTemplateData
Gets theOwnerBioTemplateDataenrolled at the specified index. This method is used to retrieve the 'orginal'OwnerBioTemplateDatain order to change its data using theinit,update,doFinalmethods.Note: indexing starts at value « 1 » (« 0 » is an invalid value).
- Specified by:
getBioTemplateDatain interfaceBioMatcher- Parameters:
index- the index of theOwnerBioTemplateDatato retrieve.- Returns:
nullif noOwnerBioTemplateDatais available at the specified index.
-