Package javacardx.biometry1toN
Interface OwnerBioMatcher
-
- All Superinterfaces:
BioMatcher
public interface OwnerBioMatcher extends BioMatcher
TheOwnerBioMatcherinterface should be implemented by the applet which owns theBioMatcher. It extends theBioMatcherinterface and adds functionality to enroll one or more Biometric Template Data containers.- Since:
- 3.0.5
-
-
Field Summary
-
Fields inherited from interface javacardx.biometry1toN.BioMatcher
MATCH_NEEDS_MORE_DATA, MINIMUM_SUCCESSFUL_MATCH_SCORE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OwnerBioTemplateDatagetBioTemplateData(short index)Gets theOwnerBioTemplateDataenrolled at the specified index.shortgetIndexOfLastMatchingBioTemplateData()Gets 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 javacardx.biometry1toN.BioMatcher
getBioType, getMaxNbOfBioTemplateData, getTriesRemaining, getVersion, initMatch, isInitialized, isValidated, match, reset
-
-
-
-
Method Detail
-
putBioTemplateData
void putBioTemplateData(short index, BioTemplateData templateData) throws Bio1toNException, SecurityExceptionEnrolls 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).- 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
void resetUnblockAndSetTryLimit(byte newTryLimit) throws Bio1toNExceptionResets 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.- 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
OwnerBioTemplateData getBioTemplateData(short index)
Gets theOwnerBioTemplateDataenrolled at the specified index. This method is used to retrieve the 'orginal'OwnerBioTemplateDatain order to change its data using theinit,update,doFinalmethods.- Specified by:
getBioTemplateDatain interfaceBioMatcher- Parameters:
index- the index of theOwnerBioTemplateDatato retrieve.- Returns:
nullif noOwnerBioTemplateDatais available at the specified index.
-
-