Interface OwnerBioTemplate
- All Superinterfaces:
BioTemplate
The
OwnerBioTemplate interface should be implemented by the
applet which owns the biometric template. It extends the
BioTemplate interface and adds functionality to enroll a
reference template.- Since:
- 2.2.2
-
Field Summary
Fields inherited from interface BioTemplate
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 TypeMethodDescriptionvoidclear()Clears the template and set its initialized state to false i.e.voiddoFinal()Finalizes the enrollment of a reference template.voidinit(byte[] bArray, short offset, short length) Initializes the enrollment of a reference template.voidresetUnblockAndSetTryLimit(byte newTryLimit) Resets the validated flag, unblocks the reference, updates the try limit value and resets the try counter to the try limit value.voidupdate(byte[] bArray, short offset, short length) Continues the enrollment of a reference template.Methods inherited from interface BioTemplate
getBioType, getPublicTemplateData, getTriesRemaining, getVersion, initMatch, isInitialized, isValidated, match, resetModifier and TypeMethodDescriptionbyteGet the biometric type.shortgetPublicTemplateData(short publicOffset, byte[] dest, short destOffset, short length) Get public part of the reference template.byteReturns the number of times remaining that an incorrect candidate template can be presented before the reference template is blocked.shortgetVersion(byte[] dest, short offset) Get the matching algorithm version and ID.shortinitMatch(byte[] candidate, short offset, short length) Initialize or re-initialize a biometric matching session.booleanReturns true if the reference template is completely loaded and ready for matching functions.booleanReturns true if the template has been successfully checked since the last card reset or last call toreset().shortmatch(byte[] candidate, short offset, short length) Continues a biometric matching session.voidreset()Resets the validated flag associated with the reference template.
-
Method Details
-
init
Initializes the enrollment of a reference template. This method is also used to update a reference template. It resets the validated flag and, in the update case, uninitializes the previous reference.Notes:
- A correct
enrollment sequence is :
init, [update],doFinal. CallinginitanddoFinalis mandatory, callingupdateis optional. - The template format verification may occur during any step of the enrollment
sequence or may only be performed when fully received in
doFinalcall.
- Parameters:
bArray- - byte array containing the data of the templateoffset- - starting offset in thebArraylength- - byte length of the template data in thebArray- Throws:
BioException- with the following reason codes:BioException.INVALID_DATAif the submitted template data does not have the required format.
- A correct
enrollment sequence is :
-
update
Continues the enrollment of a reference template. This method should only be used if all the input data required for enrollment is not available in one byte array. It can be called several times.Notes:
- A correct
enrollment sequence is :
init, [update],doFinal. CallinginitanddoFinalis mandatory, callingupdateis optional. - The template format verification may occur during any step of the enrollment
sequence or may only be performed when fully received in
doFinalcall.
- Parameters:
bArray- - byte array containing the data of the templateoffset- - starting offset in thebArraylength- - byte length of the template data in thebArray- Throws:
BioException- with the following reason codes:BioException.ILLEGAL_USEif the reference is already initialized or the current enrollment state doesn't expect this method.BioException.INVALID_DATAif the submitted template data does not have the required format.
- A correct
enrollment sequence is :
-
doFinal
Finalizes the enrollment of a reference template. Final action of enrollment is to designate a reference template as being complete and ready for use (marks the reference as initialized, resets the try counter and unblocks the reference). This routine may also include some error checking prior to the validation of reference template as ready for use.Notes:
- A correct
enrollment sequence is :
init, [update],doFinal. CallinginitanddoFinalis mandatory, callingupdateis optional. - The template format verification may occur during any step of the enrollment
sequence or may only be performed when fully received in
doFinalcall.
- Throws:
BioException- with the following reason codes:BioException.ILLEGAL_USEif the reference is already initialized or the current enrollment state doesn't expect this method.BioException.INVALID_DATAif the submitted template data does not have the required format.
- A correct
enrollment sequence is :
-
resetUnblockAndSetTryLimit
Resets the validated flag, unblocks the reference, updates the try limit value and resets the try counter to the try limit value.- Parameters:
newTryLimit- - the number of tries allowed before the reference is blocked.newTryLimitmust be at least 1.- Throws:
BioException- with the following reason codes:BioException.ILLEGAL_VALUEif thenewTryLimitparameter is less than 1.
-
clear
void clear()Clears the template and set its initialized state to false i.e.isInitialized()must return false.- Since:
- 3.2
-