Package javacardx.biometry1toN
Interface OwnerBioTemplateData
-
- All Superinterfaces:
BioTemplateData
public interface OwnerBioTemplateData extends BioTemplateData
TheOwnerBioTemplateData
interface should be implemented by the applet which owns the Biometric Template Data containers. It extends theBioTemplateData
interface and adds functionality to enroll a Biometric Template Data.- Since:
- 3.0.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
doFinal()
Finalizes the enrollment of biometric template data.void
init(byte[] bArray, short offset, short length)
Initializes the enrollment of biometric template data.void
update(byte[] bArray, short offset, short length)
Continues the enrollment of biometric template data.-
Methods inherited from interface javacardx.biometry1toN.BioTemplateData
getBioType, getPublicData, isInitialized
-
-
-
-
Method Detail
-
init
void init(byte[] bArray, short offset, short length) throws Bio1toNException
Initializes the enrollment of biometric template data. This method is also used to update biometric template data and will restart an initialization sequence.Notes:
- A call to this method does not complete the initialization. A correct
enrollment sequence is :
init
, [update
,]doFinal
. Callinginit
anddoFinal
is mandatory, callingupdate
is optional. A call toBioTemplateData.isInitialized()
will returntrue
only if the enrollment sequence is completed. - The template format verification may occur during any step of the enrollment
sequence or may only be performed when fully received in
doFinal
call.
- Parameters:
bArray
- byte array containing the biometric template dataoffset
- starting offset in thebArray
length
- byte length of the template data in thebArray
- Throws:
Bio1toNException
- with the following reason codes:Bio1toNException.INVALID_DATA
if the submitted biometric template data does not have the required format.
- A call to this method does not complete the initialization. A correct
enrollment sequence is :
-
update
void update(byte[] bArray, short offset, short length) throws Bio1toNException
Continues the enrollment of biometric template data. 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:
- Parameters:
bArray
- byte array containing the biometric template dataoffset
- starting offset in thebArray
length
- byte length of the biometric template data in thebArray
- Throws:
Bio1toNException
- with the following reason codes:Bio1toNException.ILLEGAL_USE
if the biometric template data is already initialized or the current enrollment state doesn't expect this method.Bio1toNException.INVALID_DATA
if the submitted biometric template data does not have the required format.
-
doFinal
void doFinal() throws Bio1toNException
Finalizes the enrollment of biometric template data. Final action of enrollment is to designate a biometric template data as being complete and ready for use (marks the reference as initialized). This routine may also include some error checking prior to the validation of biometric template data as ready for use.Notes:
- Throws:
Bio1toNException
- with the following reason codes:Bio1toNException.ILLEGAL_USE
if the biometric template data is already initialized or the current enrollment state doesn't expect this method.Bio1toNException.INVALID_DATA
if the submitted biometric template data does not have the required format.
-
-