|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcafe.fingerprintauthentication.FingerprintAuthentication
public class FingerprintAuthentication
This is the main class of FingerprintAutherntication component. It implements
following interfaces FingerprintData
,
Fingerprint
and , IStatusEventListener
This
class makes most of the work in the component. It's also the one which is
used when creating the component. Main purpose of the class is to
authenticate user fingerprints after authenticating fingerprint it will call
FingerprintEvent
interface to notify main program about found
fingerprint.
Constructor Summary | |
---|---|
FingerprintAuthentication(FingerprintSettings settings,
FingerprintEvent eventinterface)
This is the constructor for the FingerprintAuthentication
component and class. |
Method Summary | |
---|---|
void |
addFingerprint(FPData data)
This method adds one fingerprint in the fingerprint cache. |
boolean |
deleteFingerprint(int id)
This method deletes one fingerprint from the fingerprint cache. |
void |
finalize()
This method will do some cleanup for the reader. |
void |
newFingerprint(com.griaule.grfingerjava.FingerprintImage image)
This method if called when ReaderListener recives new
image it's the heart of the fingerprint authentication part. |
void |
onSensorPlug(java.lang.String info)
Following method is called when ever there is fingerprint sensor plugged in. |
void |
onSensorUnplug(java.lang.String info)
This method is called when user disconnects fingerprint reader from system. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FingerprintAuthentication(FingerprintSettings settings, FingerprintEvent eventinterface)
FingerprintAuthentication
component and class. It initializes fingerprint authentication and
creates cache-object which will hold fingerprints which we will
authenticate against.
settings
- eventinterface
- Method Detail |
---|
public void onSensorPlug(java.lang.String info)
ReaderListener
to
recive fingerprint images.
onSensorPlug
in interface com.griaule.grfingerjava.IStatusEventListener
info
- Identification string of the reader. Valid value is a valid sensor name as a String.
Will throw NullPointerException if given a null value.public void onSensorUnplug(java.lang.String info)
ReaderListener
object
onSensorUnplug
in interface com.griaule.grfingerjava.IStatusEventListener
info
- Indentification string of the reader Valid value is a valid sensor name as a String.
Will throw NullPointerException if given a null value.public void newFingerprint(com.griaule.grfingerjava.FingerprintImage image)
ReaderListener
recives new
image it's the heart of the fingerprint authentication part. After
reciving image we will extract the identification Template
for it. After reciving Template
we will input it in
MatchingContext
for identification. When
MatchingContext
is ready we will one after another input
known fingerprints on it to match them against it. Until match is either
found or we have exausted our library of fingerprints.
After matching has finished we will call authenticatedFingerprint or
unAuthenticatedFingerprint methods respectively.
newFingerprint
in interface FingerprintData
image
- Scanned image of fingerprint.public boolean deleteFingerprint(int id)
deleteFingerprint
in interface Fingerprint
id
- Id of the fingerprint we want to delete. Valid values are from 0 to Integer.MAX_VALUE
public void addFingerprint(FPData data)
addFingerprint
in interface Fingerprint
data
- Information of the fingerprint. Valid value is FPData
-object with valid info in it.
Will throw NullPointerException if you try to feed it null.public void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |