com.itextpdf.text.pdf.security
Class MakeXmlSignature

java.lang.Object
  extended by com.itextpdf.text.pdf.security.MakeXmlSignature

public class MakeXmlSignature
extends Object

Class that signs your XML.


Constructor Summary
MakeXmlSignature()
           
 
Method Summary
static void signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain)
          Signs the xml using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).
static void signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, javax.xml.crypto.dsig.keyinfo.KeyInfo keyInfo)
          Signs the xml using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).
static void signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, PublicKey publicKey)
          Signs the xml using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MakeXmlSignature

public MakeXmlSignature()
Method Detail

signXmlDSig

public static void signXmlDSig(XmlSignatureAppearance sap,
                               ExternalSignature externalSignature,
                               javax.xml.crypto.dsig.keyinfo.KeyInfo keyInfo)
                        throws GeneralSecurityException,
                               IOException,
                               DocumentException
Signs the xml using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).

Parameters:
sap - the XmlSignatureAppearance
externalSignature - the interface providing the actual signing
keyInfo - KeyInfo for verification
Throws:
GeneralSecurityException
IOException
DocumentException

signXmlDSig

public static void signXmlDSig(XmlSignatureAppearance sap,
                               ExternalSignature externalSignature,
                               Certificate[] chain)
                        throws DocumentException,
                               GeneralSecurityException,
                               IOException
Signs the xml using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).

Parameters:
sap - the XmlSignatureAppearance
externalSignature - the interface providing the actual signing
chain - the certificate chain
Throws:
GeneralSecurityException
IOException
DocumentException

signXmlDSig

public static void signXmlDSig(XmlSignatureAppearance sap,
                               ExternalSignature externalSignature,
                               PublicKey publicKey)
                        throws GeneralSecurityException,
                               DocumentException,
                               IOException
Signs the xml using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).

Parameters:
sap - the XmlSignatureAppearance
externalSignature - the interface providing the actual signing
publicKey - PublicKey for verification
Throws:
GeneralSecurityException
IOException
DocumentException


Copyright © 2013. All Rights Reserved.