at.knowcenter.wag.egov.egiz.sig
Class SignatureTypes

java.lang.Object
  extended by at.knowcenter.wag.egov.egiz.sig.SignatureTypes

public class SignatureTypes
extends Object


Field Summary
static byte[][] ALL_SIG_BREV
           
static String[] ALL_SIG_KEYS
           
static String COLS_WITH
          The settings key sub prefix getting the width of columns for a table definition
static String DEFAULT_TYPE
          The settings key prefix for the default signature object type
static String MAIN_TABLE
          The settings key sub prefix getting the main table definition
static String[] REQUIRED_SIG_KEYS
          Array of required signature keys
static String SIG_DATE
          Standard key get/set the signature date
static String SIG_DESCR
          The settings key postfix for the type description
static String SIG_ID
          Standard key get/set the signation id's used by BKU signated documents
static String SIG_ISSUER
          Standard key get/set the signator issuer
static String SIG_KZ
          The EGIZ Algorithm "Kennzeichnung".
static String SIG_LABEL
          Standard key get/set the reference to the signature label (image mark)
static String SIG_META
          Standard key get/set the signature meta informations
static String SIG_NAME
          Standard key get/set the singature name
static String SIG_NORM
          Standard key get/set the normalisation method used
static String SIG_NUMBER
          Standard key get/set the serial number of the signature
static String SIG_OBJ
          The settings key prefix for signature definitions.
static String SIG_VALUE
          Standard key get/set the siganture value
static String STYLE
          The settings key sub prefix getting the style definition
static String TABLE
          The settings key prefix for the signature table object definition
static String TYPE_CAPTION
          The settings value refering to a text caption
static String TYPE_IMAGE
          The settings value refering to an image
static String TYPE_TABLE
          The settings value refering to a table
static String TYPE_VALUE
          The settings value refering to a text value
static String TYPES
          The settings key prefix for signature object types
 
Method Summary
static String convertBrevToType(byte[] brev)
           
static byte[] convertTypeToBrev(String type)
           
static SignatureTypes getInstance()
          This static method returns the stored instance of this class.
 SignatureTypeDefinition getSignatureTypeDefinition(String type)
          This method returns the corresponding signature type definition to a given type key
 List getSignatureTypeDefinitions()
           
 ArrayList getSignatureTypes()
           
static boolean isRequiredKey(String key)
          Tells, if the given key is a required key.
 String toString()
          The standard toString method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SIG_OBJ

public static final String SIG_OBJ
The settings key prefix for signature definitions. "sig_obj."

See Also:
Constant Field Values

TYPES

public static final String TYPES
The settings key prefix for signature object types

See Also:
Constant Field Values

DEFAULT_TYPE

public static final String DEFAULT_TYPE
The settings key prefix for the default signature object type

See Also:
Constant Field Values

SIG_DESCR

public static final String SIG_DESCR
The settings key postfix for the type description

See Also:
Constant Field Values

TABLE

public static final String TABLE
The settings key prefix for the signature table object definition

See Also:
Constant Field Values

MAIN_TABLE

public static final String MAIN_TABLE
The settings key sub prefix getting the main table definition

See Also:
Constant Field Values

TYPE_TABLE

public static final String TYPE_TABLE
The settings value refering to a table

See Also:
Constant Field Values

TYPE_IMAGE

public static final String TYPE_IMAGE
The settings value refering to an image

See Also:
Constant Field Values

TYPE_CAPTION

public static final String TYPE_CAPTION
The settings value refering to a text caption

See Also:
Constant Field Values

TYPE_VALUE

public static final String TYPE_VALUE
The settings value refering to a text value

See Also:
Constant Field Values

COLS_WITH

public static final String COLS_WITH
The settings key sub prefix getting the width of columns for a table definition

See Also:
Constant Field Values

STYLE

public static final String STYLE
The settings key sub prefix getting the style definition

See Also:
Constant Field Values

SIG_NAME

public static final String SIG_NAME
Standard key get/set the singature name

See Also:
Constant Field Values

SIG_DATE

public static final String SIG_DATE
Standard key get/set the signature date

See Also:
Constant Field Values

SIG_ISSUER

public static final String SIG_ISSUER
Standard key get/set the signator issuer

See Also:
Constant Field Values

SIG_VALUE

public static final String SIG_VALUE
Standard key get/set the siganture value

See Also:
Constant Field Values

SIG_NORM

public static final String SIG_NORM
Standard key get/set the normalisation method used

See Also:
Constant Field Values

SIG_ID

public static final String SIG_ID
Standard key get/set the signation id's used by BKU signated documents

See Also:
Constant Field Values

SIG_KZ

public static final String SIG_KZ
The EGIZ Algorithm "Kennzeichnung".

See Also:
Constant Field Values

SIG_LABEL

public static final String SIG_LABEL
Standard key get/set the reference to the signature label (image mark)

See Also:
Constant Field Values

SIG_NUMBER

public static final String SIG_NUMBER
Standard key get/set the serial number of the signature

See Also:
Constant Field Values

SIG_META

public static final String SIG_META
Standard key get/set the signature meta informations

See Also:
Constant Field Values

REQUIRED_SIG_KEYS

public static String[] REQUIRED_SIG_KEYS
Array of required signature keys


ALL_SIG_KEYS

public static String[] ALL_SIG_KEYS

ALL_SIG_BREV

public static byte[][] ALL_SIG_BREV
Method Detail

isRequiredKey

public static boolean isRequiredKey(String key)
Tells, if the given key is a required key.

Note that the SIG_KZ is a required key.

Parameters:
key - The key to be tested if it is a required key.
Returns:
Returns true, if the key is required, false otherwise.

getInstance

public static SignatureTypes getInstance()
                                  throws SignatureTypesException
This static method returns the stored instance of this class. If the singleton does not exist, this method creates a new singleton and gives this instance back to the caller.

Returns:
the stored instance of this class
Throws:
SignatureTypesException

getSignatureTypes

public ArrayList getSignatureTypes()
Returns:
a arrayList (String) of signature types

getSignatureTypeDefinitions

public List getSignatureTypeDefinitions()
Returns:
a list of signature type definitions

getSignatureTypeDefinition

public SignatureTypeDefinition getSignatureTypeDefinition(String type)
This method returns the corresponding signature type definition to a given type key

Parameters:
type - the key to get the signature type definition
Returns:
the stored signature type definition

convertBrevToType

public static String convertBrevToType(byte[] brev)

convertTypeToBrev

public static byte[] convertTypeToBrev(String type)

toString

public String toString()
The standard toString method. Used for testing only.

Overrides:
toString in class Object
Returns:
the string representation of the class


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