Package com.itextpdf.text.pdf
Class XmlSignatureAppearance
java.lang.Object
com.itextpdf.text.pdf.XmlSignatureAppearance
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close PdfStamperGets the signature date.com.itextpdf.text.pdf.PdfStamperImpHelps to locate xml streamConstructor for xpath expression in case signing only part of XML document.voidsetCertificate(Certificate signCertificate) Sets the certificate used to provide the text in the appearance.voidsetDescription(String description) voidsetMimeType(String mimeType) voidsetSignDate(Calendar signDate) Sets the signature date.voidsetStamper(PdfStamper stamper) voidsetXmlLocator(XmlLocator xmlLocator) voidsetXpathConstructor(XpathConstructor xpathConstructor)
-
Method Details
-
getWriter
public com.itextpdf.text.pdf.PdfStamperImp getWriter() -
getStamper
-
setStamper
-
setCertificate
Sets the certificate used to provide the text in the appearance. This certificate doesn't take part in the actual signing process.- Parameters:
signCertificate- the certificate
-
getCertificate
-
setDescription
-
getDescription
-
getMimeType
-
setMimeType
-
getSignDate
Gets the signature date.- Returns:
- the signature date
-
setSignDate
Sets the signature date.- Parameters:
signDate- the signature date
-
getXmlLocator
Helps to locate xml stream- Returns:
- XmlLocator, cannot be null.
-
setXmlLocator
-
getXpathConstructor
Constructor for xpath expression in case signing only part of XML document.- Returns:
- XpathConstructor, can be null
-
setXpathConstructor
-
close
Close PdfStamper- Throws:
IOExceptionDocumentException
-