|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.pdf.security.MakeXmlSignature
public class MakeXmlSignature
Class that signs your XML.
| Constructor Summary | |
|---|---|
MakeXmlSignature()
|
|
| Method Summary | |
|---|---|
static void |
signXades(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
Certificate[] chain,
boolean includeSignaturePolicy)
Signs the xml with XAdES BES using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance). |
static void |
signXadesBes(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
Certificate[] chain)
Signs the xml with XAdES BES using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance). |
static void |
signXadesEpes(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
Certificate[] chain)
Signs the xml with XAdES BES using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance). |
static void |
signXmlDSig(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
Certificate[] chain)
Signs the xml with XmlDSig 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 with XmlDSig using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance). |
static void |
signXmlDSig(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
PublicKey publicKey)
Signs the xml with XmlDSig 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
public static void signXades(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
Certificate[] chain,
boolean includeSignaturePolicy)
throws GeneralSecurityException,
DocumentException,
IOException
sap - the XmlSignatureAppearanceexternalSignature - the interface providing the actual signingchain - the certificate chainincludeSignaturePolicy - if true SignaturePolicyIdentifier will be included (XAdES-EPES)
GeneralSecurityException
IOException
DocumentException
public static void signXadesBes(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
Certificate[] chain)
throws GeneralSecurityException,
DocumentException,
IOException
sap - the XmlSignatureAppearanceexternalSignature - the interface providing the actual signingchain - the certificate chain
GeneralSecurityException
IOException
DocumentException
public static void signXadesEpes(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
Certificate[] chain)
throws GeneralSecurityException,
DocumentException,
IOException
sap - the XmlSignatureAppearanceexternalSignature - the interface providing the actual signingchain - the certificate chain
GeneralSecurityException
IOException
DocumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||