|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The BioTemplate interface is the base interface for all biometric templates. It provides to the user the means for accessing biometric functionality.
OwnerBioTemplate| Field Summary | |
static short |
MATCH_NEEDS_MORE_DATA
This score value indicates that more data are needed to continue the matching session. |
static short |
MINIMUM_SUCCESSFUL_MATCH_SCORE
The minimum successful matching score. |
| Method Summary | |
byte |
getBioType()
Get the biometric type. |
short |
getPublicTemplateData(short publicOffset,
byte[] dest,
short destOffset,
short length)
Get public part of the reference template. |
byte |
getTriesRemaining()
Returns the number of times remaining that an incorrect candidate template can be presented before the reference template is blocked. |
short |
getVersion(byte[] dest,
short destOffset)
Get the matching algorithm version and ID. |
short |
initMatch(byte[] candidateTemplate,
short offset,
short length)
Initialize or re-initialize a biometric matching session. |
boolean |
isInitialized()
Returns true if the reference template is completely loaded
and ready for matching functions. |
boolean |
isValidated()
Returns true if the template has been successfully checked
since the last card reset or last call to reset(). |
short |
match(byte[] candidateTemplate,
short offset,
short length)
Continues a biometric matching session. |
void |
reset()
Resets the reference validated flag. |
| Field Detail |
public static final short MINIMUM_SUCCESSFUL_MATCH_SCORE
public static final short MATCH_NEEDS_MORE_DATA
| Method Detail |
public boolean isValidated()
true if the template has been successfully checked
since the last card reset or last call to reset().
true if validated, false otherwise.public boolean isInitialized()
true if the reference template is completely loaded
and ready for matching functions. This is independent of whether or not the match
process has been initialized (see initMatch(byte[], short, short)).
true if initialized, false otherwise.
public short getPublicTemplateData(short publicOffset,
byte[] dest,
short destOffset,
short length)
throws BioException
publicOffset - starting offset within the public data.dest - destination byte array.destOffset - starting offset within the destination byte array.length - maximum length (in bytes) of the requested data.
BioException - with reason BioException.ILLEGAL_VALUE
if the reference template is uninitialized.public byte getBioType()
BioBuilder.
public short getVersion(byte[] dest,
short destOffset)
dest - destination byte array.destOffset - starting offset within the destination byte array.
public void reset()
public byte getTriesRemaining()
public short initMatch(byte[] candidateTemplate,
short offset,
short length)
throws BioException
This method makes the matching session:
initMatch(byte[], short, short)-[match(byte[], short, short)].
Calling initMatch(byte[], short, short) is mandatory, calling
match(byte[], short, short) is optional.
initMatch(byte[], short, short) makes the current session
fail and starts a new matching session.
candidateTemplate - the data or part of the data of the candidate template.offset - starting offset into the candidate array where the candidate
data is to be found.length - number of bytes to be taken from the candidate array.
MINIMUM_SUCCESSFUL_MATCH_SCORE: the matching session is successful.
MINIMUM_SUCCESSFUL_MATCH_SCORE: the matching session has failed.
MATCH_NEEDS_MORE_DATA: the matching session needs more data.
BioException - with reason BioException.INVALID_DATA
if the submitted candidate template data does not have the required format.
BioException - with reason BioException.NO_TEMPLATES_ENROLLED
if the reference template is uninitialized.
public short match(byte[] candidateTemplate,
short offset,
short length)
throws BioException
If a matching session is in progress, this method makes the session:
initMatch(byte[], short, short)-[match(byte[], short, short)].
Calling initMatch(byte[], short, short) is mandatory, calling
match(byte[], short, short) is optional.
initMatch(byte[], short, short) makes the current session
fail and starts a new matching session.
candidateTemplate - the data or part of the data of the candidate template.offset - starting offset into the candidate array where the candidate
data is to be found.length - number of bytes to be taken from the candidate array.
MINIMUM_SUCCESSFUL_MATCH_SCORE: the matching session is successful.
MINIMUM_SUCCESSFUL_MATCH_SCORE: the matching session has failed.
MATCH_NEEDS_MORE_DATA: the matching session needs more data.
BioException - with reason BioException.ILLEGAL_USE
if used outside a matching session.
BioException - with reason BioException.INVALID_DATA
if the submitted candidate template data does not have the required format.
BioException - with reason BioException.NO_TEMPLATES_ENROLLED
if the reference template is uninitialized.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||