|
|
In order to use Fingerprint SDK in Java applets for Windows, three more requisites must be met:
|
In order to make it easier to met the second and third requisites, the Fingerprint SDK also contains a helper, the GrFingerAppletInstaller class, that has methods to perform all the necessary operations: unpacking ZIP files, copying files to the filesystem, initializing GrFinger, removing the copied files.
|
The GrFingerAppletInstaller class handles two resources: a ZIP file (containing the libraries) and a license file. |
Using the methods provided by the class, copying the files and creating a GrFinger object is straightforward:
// Create the installer
GrFingerAppletInstaller installer = new GrFingerAppletInstaller("","libraries.zip");
// Install libraries
installer.copyAndExtractZip();
// Install license
installer.copyLicense("mylicense.txt");
// Create GrFinger object
GrFinger grFinger = installer.getGrFinger();
Finalizing GrFinger and removing the copied files using the methods provided by the GrFingerAppletInstaller class is also straightforward:
// Finalize GrFinger library grFinger.finalize(); // Finalize installer, removing copied files installer.finalize();