anon.crypto
Class SignatureCreator

java.lang.Object
  extended by anon.crypto.SignatureCreator

public class SignatureCreator
extends java.lang.Object


Field Summary
private  java.util.Hashtable m_signatureKeys
           
private static SignatureCreator ms_scInstance
          Stores the instance of SignatureCreator (Singleton).
 
Constructor Summary
private SignatureCreator()
          Creates a new instance of SignatureVerifier.
 
Method Summary
static SignatureCreator getInstance()
          Returns the instance of SignatureCreator (Singleton).
 XMLSignature getSignedXml(int a_documentClass, org.w3c.dom.Node a_nodeToSign)
           
 void setSigningKey(int a_purpose, PKCS12 a_signatureKey)
           
 boolean signXml(int a_documentClass, org.w3c.dom.Node a_nodeToSign)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ms_scInstance

private static SignatureCreator ms_scInstance
Stores the instance of SignatureCreator (Singleton).


m_signatureKeys

private java.util.Hashtable m_signatureKeys
Constructor Detail

SignatureCreator

private SignatureCreator()
Creates a new instance of SignatureVerifier.

Method Detail

getInstance

public static SignatureCreator getInstance()
Returns the instance of SignatureCreator (Singleton). If there is no instance, there is a new one created.

Returns:
The SignatureCreator instance.

setSigningKey

public void setSigningKey(int a_purpose,
                          PKCS12 a_signatureKey)

getSignedXml

public XMLSignature getSignedXml(int a_documentClass,
                                 org.w3c.dom.Node a_nodeToSign)

signXml

public boolean signXml(int a_documentClass,
                       org.w3c.dom.Node a_nodeToSign)