at.knowcenter.wag.egov.egiz.framework
Class SignatorFactory

java.lang.Object
  extended by at.knowcenter.wag.egov.egiz.framework.SignatorFactory

public abstract class SignatorFactory
extends Object

This factory creates instances of Signator classes corresponding to the given PdfAS Algorithm IDs.

Author:
wprinz

Field Summary
static PdfASID MOST_RECENT_BINARY_SIGNATOR_ID
          The most recent binary algorithm this application provides.
static PdfASID MOST_RECENT_DETACHED_SIGNATOR_ID
          The most recent test algorithm this application provides.
static PdfASID MOST_RECENT_TEXTUAL_SIGNATOR_ID
          The most recent textual algorithm this application provides.
static String TYPE_BINARY
          The binary Signator algorithm.
static String TYPE_TEST
          This signator is only for testing the framework.
static String TYPE_TEXTUAL
          The textual Signator algorithm.
static String VENDOR
          The Vendor.
static String VERSION_1_0_0
          This application's current algorithm versions.
 
Constructor Summary
SignatorFactory()
           
 
Method Summary
static Signator createMostRecentSignator(String signator_type)
          Creates the most recent signator the application provides for the given type.
static Signator createSignator(PdfASID id)
          Creates a Signator for the given ID.
static String[] getAvailableTyes()
          Returns the list of available Signator algorithms of this application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VENDOR

public static final String VENDOR
The Vendor.

See Also:
Constant Field Values

TYPE_BINARY

public static final String TYPE_BINARY
The binary Signator algorithm.

See Also:
Constant Field Values

TYPE_TEXTUAL

public static final String TYPE_TEXTUAL
The textual Signator algorithm.

See Also:
Constant Field Values

TYPE_TEST

public static final String TYPE_TEST
This signator is only for testing the framework.

See Also:
Constant Field Values

VERSION_1_0_0

public static final String VERSION_1_0_0
This application's current algorithm versions.

See Also:
Constant Field Values

MOST_RECENT_BINARY_SIGNATOR_ID

public static final PdfASID MOST_RECENT_BINARY_SIGNATOR_ID
The most recent binary algorithm this application provides.


MOST_RECENT_TEXTUAL_SIGNATOR_ID

public static final PdfASID MOST_RECENT_TEXTUAL_SIGNATOR_ID
The most recent textual algorithm this application provides.


MOST_RECENT_DETACHED_SIGNATOR_ID

public static final PdfASID MOST_RECENT_DETACHED_SIGNATOR_ID
The most recent test algorithm this application provides.

Constructor Detail

SignatorFactory

public SignatorFactory()
Method Detail

createSignator

public static Signator createSignator(PdfASID id)
                               throws SignatorFactoryException
Creates a Signator for the given ID.

Parameters:
id - The ID of the Signator to be created.
Returns:
Returns the created Signator object.
Throws:
SignatorFactoryException - Thrown, if there is no appropriate Signator for the given ID.

createMostRecentSignator

public static Signator createMostRecentSignator(String signator_type)
                                         throws SignatorFactoryException
Creates the most recent signator the application provides for the given type.

Parameters:
signator_type - The type of the signator to be created (see the type field of PdfASID).
Returns:
Returns the created Signator instance.
Throws:
SignatorFactoryException - Thrown, if the type is unknown.

getAvailableTyes

public static String[] getAvailableTyes()
Returns the list of available Signator algorithms of this application.

Use createMostRecentSignator to create the most recent signator for the type.

Returns:
Returns the list of available Signator algorithms of this application.


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