Package com.itextpdf.text.pdf
Class XmlSignatureAppearance
- java.lang.Object
-
- com.itextpdf.text.pdf.XmlSignatureAppearance
-
public class XmlSignatureAppearance extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close PdfStamperCertificategetCertificate()StringgetDescription()StringgetMimeType()CalendargetSignDate()Gets the signature date.PdfStampergetStamper()com.itextpdf.text.pdf.PdfStamperImpgetWriter()XmlLocatorgetXmlLocator()Helps to locate xml streamXpathConstructorgetXpathConstructor()Constructor 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 Detail
-
getWriter
public com.itextpdf.text.pdf.PdfStamperImp getWriter()
-
getStamper
public PdfStamper getStamper()
-
setStamper
public void setStamper(PdfStamper stamper)
-
setCertificate
public void setCertificate(Certificate signCertificate)
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
public Certificate getCertificate()
-
setDescription
public void setDescription(String description)
-
getDescription
public String getDescription()
-
getMimeType
public String getMimeType()
-
setMimeType
public void setMimeType(String mimeType)
-
getSignDate
public Calendar getSignDate()
Gets the signature date.- Returns:
- the signature date
-
setSignDate
public void setSignDate(Calendar signDate)
Sets the signature date.- Parameters:
signDate- the signature date
-
getXmlLocator
public XmlLocator getXmlLocator()
Helps to locate xml stream- Returns:
- XmlLocator, cannot be null.
-
setXmlLocator
public void setXmlLocator(XmlLocator xmlLocator)
-
getXpathConstructor
public XpathConstructor getXpathConstructor()
Constructor for xpath expression in case signing only part of XML document.- Returns:
- XpathConstructor, can be null
-
setXpathConstructor
public void setXpathConstructor(XpathConstructor xpathConstructor)
-
close
public void close() throws IOException, DocumentExceptionClose PdfStamper- Throws:
IOExceptionDocumentException
-
-