org.openoces.ooapi.signatures
Class OpensignAbstractSignature

java.lang.Object
  extended byorg.openoces.ooapi.signatures.OpensignAbstractSignature
Direct Known Subclasses:
OpenlogonSignature, OpensignSignature

public abstract class OpensignAbstractSignature
extends java.lang.Object

This class is a high-level representation of the parts of an Opensign generated xmldsig signature, that is common for Openlogon and Opensign

Author:
Carsten Raskgaard

Field Summary
protected  org.w3c.dom.Document doc
           
protected  java.lang.String NAMESPACEURI_OPENOCES_R1
           
protected  java.lang.String NAMESPACEURI_OPENOCES_R2
           
protected  org.w3c.dom.Element nscontext
           
protected  boolean populatedInternalStructures
           
protected  org.w3c.dom.Element sigElement
           
protected  org.apache.xml.security.signature.XMLSignature signature
           
 
Constructor Summary
protected OpensignAbstractSignature(org.w3c.dom.Document doc)
           
 
Method Summary
protected static org.w3c.dom.Document getDocument(byte[] bs)
           
 java.util.Hashtable getSignatureProperties()
           
protected  java.util.Hashtable[] getSignaturePropertiesExtended()
           
 java.security.cert.X509Certificate getSigningCertificate()
           
protected  void populateInternalStructures()
           
 void verify()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

protected org.w3c.dom.Document doc

populatedInternalStructures

protected boolean populatedInternalStructures

nscontext

protected org.w3c.dom.Element nscontext

sigElement

protected org.w3c.dom.Element sigElement

signature

protected org.apache.xml.security.signature.XMLSignature signature

NAMESPACEURI_OPENOCES_R1

protected final java.lang.String NAMESPACEURI_OPENOCES_R1
See Also:
Constant Field Values

NAMESPACEURI_OPENOCES_R2

protected final java.lang.String NAMESPACEURI_OPENOCES_R2
See Also:
Constant Field Values
Constructor Detail

OpensignAbstractSignature

protected OpensignAbstractSignature(org.w3c.dom.Document doc)
Method Detail

populateInternalStructures

protected void populateInternalStructures()
                                   throws javax.xml.transform.TransformerException,
                                          org.apache.xml.security.exceptions.XMLSecurityException
Throws:
javax.xml.transform.TransformerException
org.apache.xml.security.exceptions.XMLSecurityException

getSigningCertificate

public java.security.cert.X509Certificate getSigningCertificate()
                                                         throws InternalException
Throws:
InternalException

verify

public void verify()
            throws InternalException,
                   SignatureVerificationException
Throws:
InternalException
SignatureVerificationException

getDocument

protected static org.w3c.dom.Document getDocument(byte[] bs)
                                           throws javax.xml.parsers.ParserConfigurationException,
                                                  java.io.IOException,
                                                  org.xml.sax.SAXException
Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException

getSignaturePropertiesExtended

protected java.util.Hashtable[] getSignaturePropertiesExtended()
                                                        throws InternalException
Throws:
InternalException

getSignatureProperties

public java.util.Hashtable getSignatureProperties()
                                           throws InternalException
Throws:
InternalException