NAME
EAFDSS - base class for all other classes
SYNOPSIS
use EAFDSS;
$dh = new EAFDSS(
"DRIVER" => "$driver::$params",
"SN" => $serial,
"DIR" => $sDir,
"DEBUG" => $verbal
);
$result = $dh->Status();
$result = $dh->Sign($fname);
$result = $dh->Info();
$result = $dh->SetTime($time);
$result = $dh->GetTime();
$result = $dh->SetHeaders($headers);
$result = $dh->GetHeaders();
DESCRIPTION
The EAFDSS module handles the communication with an Electronic Signature Device (EAFDSS). It defines a set of methods common to all EAFDSS devices in order to communicate with the device but also handle all necessary file housekeeping requirements by Law, like creating A, B, C files.
ARCHITECTURE
This module is loosely (and shamelessly I may add) influenced by the architecture of the DBI module. There is a layer of a basic API that is common to all EAFDSS device drivers. Usually a developer of an EAFDSS application will only need to deal with functions only at that level. You have to be in need of something really special to access functions that are specific to a certain driver.
Methods
** INCOMPLETE **
EAFDSS->new("DRIVER" => "$driver::$params", "SN" => $serial, "DIR" => $sDir, "DEBUG" => $verbal);
Returns a newly created $driver object. The DRIVER argument is a compination of a driver and it's parameters. For instance it could be one of the following:
EAFDSS::SDNP::127.0.0.1
or
EAFDSS::Dummy:/tmp/dummy.eafdss
The SN argument is the Serial number of device we wan't to connect. Each device has it's own unique serial number. If the device's SN does not much with the provided then you will get an error.
The DIR argument is the directory were the signature files (A, B and C) will be created. Make sure the directory exist.
The last argument is the DEBUG. Use a true value in order to get additional information. This one is only useful to developers of the module itself.
$dh->Sign($filename)
That method will provide the contents of the file $filename to the EAFDSS and return it's signature.
$dh->Info
Get info about the device
$dh->SetTime
Set the time on the device
$dh->GetTime
Get the time of the device
$dh->SetHeaders
Set the headers
$dh->GetHeaders
Get the headers
VERSION
This is version 0.10. Which actually is the first release and an unstable release. Only for beta testers!
AUTHOR
Hasiotis Nikos, <hasiotis@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2008 by Hasiotis Nikos
This library is free software; you can redistribute it and/or modify it under the terms of the LGPL or the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.