|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.itextpdf.text.pdf.security.MakeXmlSignature
public class MakeXmlSignature
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 |
---|
public MakeXmlSignature()
Method Detail |
---|
public static void signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, javax.xml.crypto.dsig.keyinfo.KeyInfo keyInfo) throws GeneralSecurityException, IOException, DocumentException
sap
- the XmlSignatureAppearanceexternalSignature
- the interface providing the actual signingkeyInfo
- KeyInfo for verification
GeneralSecurityException
IOException
DocumentException
public static void signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain) throws DocumentException, GeneralSecurityException, IOException
sap
- the XmlSignatureAppearanceexternalSignature
- the interface providing the actual signingchain
- the certificate chain
GeneralSecurityException
IOException
DocumentException
public static void signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, PublicKey publicKey) throws GeneralSecurityException, DocumentException, IOException
sap
- the XmlSignatureAppearanceexternalSignature
- the interface providing the actual signingpublicKey
- PublicKey for verification
GeneralSecurityException
IOException
DocumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |