Class XmlSignatureAppearance
java.lang.Object
com.itextpdf.text.pdf.XmlSignatureAppearance
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringHolds value of property xades:Description.private StringHolds value of property xades:MimeType.private Certificateprivate CalendarHolds value of property xades:SigningTime.private PdfStamperprivate PdfStamperImpprivate XmlLocatorprivate XpathConstructor -
Constructor Summary
ConstructorsConstructorDescriptionXmlSignatureAppearance(PdfStamperImp writer) Constructs XmlSignatureAppearance object. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close PdfStamperGets the signature date.Helps 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)
-
Field Details
-
writer
-
stamper
-
signCertificate
-
xmlLocator
-
xpathConstructor
-
signDate
Holds value of property xades:SigningTime. -
description
Holds value of property xades:Description. -
mimeType
Holds value of property xades:MimeType.
-
-
Constructor Details
-
XmlSignatureAppearance
XmlSignatureAppearance(PdfStamperImp writer) Constructs XmlSignatureAppearance object.- Parameters:
writer- the writer to which the signature will be written.
-
-
Method Details
-
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
-
setSignDate
Sets the signature date.- Parameters:
signDate- the signature date
-
getXmlLocator
-
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
-