fi.hut.tml.xsmiles.mlfc.signature
Class SignatureCreator

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.signature.SignatureCreator

public class SignatureCreator
extends java.lang.Object

Author:
honkkis

Constructor Summary
SignatureCreator()
           
 
Method Summary
static org.w3c.dom.Document createEmptyDoc(boolean ns)
           
static SigningKey getKey(SigningKey key)
           
static java.security.KeyStore getKeyStore(SigningKey key)
           
static org.w3c.dom.Element sign(short type, java.util.Vector signedNodes, java.util.Vector URLs, java.net.URL baseURL, SigningKey key, org.w3c.dom.Document targetDoc)
           
static org.w3c.dom.Element signEnveloped(java.util.Vector signedNodes, java.util.Vector URLs, java.net.URL baseURL, SigningKey key, org.w3c.dom.Document targetDoc)
           
static org.w3c.dom.Element signEnveloping(java.util.Vector signedNodes, java.util.Vector URLs, java.net.URL baseURL, SigningKey key, org.w3c.dom.Document targetDoc)
          Create an enveloping signature with all of the documents as an object and all the URLs as external references.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureCreator

public SignatureCreator()
Method Detail

getKey

public static SigningKey getKey(SigningKey key)

signEnveloping

public static org.w3c.dom.Element signEnveloping(java.util.Vector signedNodes,
                                                 java.util.Vector URLs,
                                                 java.net.URL baseURL,
                                                 SigningKey key,
                                                 org.w3c.dom.Document targetDoc)
                                          throws java.lang.Exception
Create an enveloping signature with all of the documents as an object and all the URLs as external references.

Throws:
java.lang.Exception

createEmptyDoc

public static org.w3c.dom.Document createEmptyDoc(boolean ns)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

sign

public static org.w3c.dom.Element sign(short type,
                                       java.util.Vector signedNodes,
                                       java.util.Vector URLs,
                                       java.net.URL baseURL,
                                       SigningKey key,
                                       org.w3c.dom.Document targetDoc)
                                throws java.lang.Exception
Throws:
java.lang.Exception

signEnveloped

public static org.w3c.dom.Element signEnveloped(java.util.Vector signedNodes,
                                                java.util.Vector URLs,
                                                java.net.URL baseURL,
                                                SigningKey key,
                                                org.w3c.dom.Document targetDoc)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

getKeyStore

public static java.security.KeyStore getKeyStore(SigningKey key)
                                          throws java.lang.Exception
Throws:
java.lang.Exception


X-Smiles 1.2