at.knowcenter.wag.egov.egiz.pdf
Class PDFSignatureCreation

java.lang.Object
  extended by at.knowcenter.wag.egov.egiz.pdf.PDFSignatureCreation

public class PDFSignatureCreation
extends Object

This class provides wrapper methods to get an access to abstract PDF documents (PDFSignator). There exists many open source libraries and commercial libraries that can implement the abstract interface.
This class is to load the corresponding implementation of an abstract PDFSignator class. Therefor it seams to be a factory. The factory settings are read from the configuration file calling the SettingsReader.

Author:
wlackner
See Also:
SettingsReader

Field Summary
protected static String DEFAULT_LIBRARY
          The factory class prefix of the default library
protected static String SETTINGS_KEY
          The settings key defined in the settings file
 
Constructor Summary
PDFSignatureCreation(SignatureObject sigObject)
          Load the configuration settings.
 
Method Summary
 PDFSignatureObject getPDFSignatureObject()
          Creates a new pdf signature object using the configured pdf library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LIBRARY

protected static final String DEFAULT_LIBRARY
The factory class prefix of the default library

See Also:
Constant Field Values

SETTINGS_KEY

protected static final String SETTINGS_KEY
The settings key defined in the settings file

See Also:
SettingsReader, Constant Field Values
Constructor Detail

PDFSignatureCreation

public PDFSignatureCreation(SignatureObject sigObject)
                     throws PDFDocumentException
Load the configuration settings. Load the corresponding class implementation for the abstract PDFSignature class. Init with a signature object.

Parameters:
sigObject - the native signature object
Throws:
PDFDocumentException - ErrorCode:101
Method Detail

getPDFSignatureObject

public PDFSignatureObject getPDFSignatureObject()
                                         throws PDFDocumentException
Creates a new pdf signature object using the configured pdf library.

Returns:
a new pdf signature object
Throws:
PDFDocumentException - ErrorCode:203


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.