iText 8.0.2 API
|
Represents the signature dictionary. More...
Public Member Functions |
|
PdfSignature () | |
Creates new PdfSignature. More... |
|
PdfSignature (PdfName filter, PdfName subFilter) | |
Creates new PdfSignature. More... |
|
PdfSignature (PdfDictionary sigDictionary) | |
virtual PdfName | GetSubFilter () |
A name that describes the encoding of the signature value and key information in the signature dictionary. More... |
|
virtual PdfName | GetType () |
The type of PDF object that the wrapped dictionary describes; if present, shall be iText.Kernel.Pdf.PdfName.Sig for a signature dictionary or iText.Kernel.Pdf.PdfName.DocTimeStamp for a timestamp signature dictionary. More... |
|
virtual void | SetByteRange (int[] range) |
Sets the /ByteRange. More... |
|
virtual PdfArray | GetByteRange () |
Gets the /ByteRange. More... |
|
virtual void | SetContents (byte[] contents) |
Sets the /Contents value to the specified byte[]. More... |
|
virtual PdfString | GetContents () |
Gets the /Contents entry value. More... |
|
virtual void | SetCert (byte[] cert) |
Sets the /Cert value of this signature. More... |
|
virtual PdfString | GetCert () |
Gets the /Cert entry value of this signature. More... |
|
virtual PdfObject | GetCertObject () |
Gets the /Cert entry value of this signature. More... |
|
virtual void | SetName (String name) |
Sets the /Name of the person signing the document. More... |
|
virtual String | GetName () |
gets the /Name of the person signing the document. More... |
|
virtual void | SetDate (PdfDate date) |
Sets the /M value. More... |
|
virtual PdfString | GetDate () |
Gets the /M value. More... |
|
virtual void | SetLocation (String location) |
Sets the /Location value. More... |
|
virtual String | GetLocation () |
Gets the /Location entry value. More... |
|
virtual void | SetReason (String reason) |
Sets the /Reason value. More... |
|
virtual String | GetReason () |
virtual void | SetSignatureCreator (String signatureCreator) |
Sets the signature creator name in the PdfSignatureBuildProperties dictionary. More... |
|
virtual void | SetContact (String contactInfo) |
Sets the /ContactInfo value. More... |
|
virtual iText.Signatures.PdfSignature | Put (PdfName key, PdfObject value) |
![]() |
|
virtual T | GetPdfObject () |
virtual iText.Kernel.Pdf.PdfObjectWrapper< T > | MakeIndirect (PdfDocument document, PdfIndirectReference reference) |
Marks object behind wrapper to be saved as indirect. More... |
|
virtual iText.Kernel.Pdf.PdfObjectWrapper< T > | MakeIndirect (PdfDocument document) |
Marks object behind wrapper to be saved as indirect. More... |
|
virtual iText.Kernel.Pdf.PdfObjectWrapper< T > | SetModified () |
virtual void | Flush () |
virtual bool | IsFlushed () |
Protected Member Functions |
|
override bool | IsWrappedObjectMustBeIndirect () |
Defines if the object behind this wrapper must be an indirect object in the resultant document. More... |
|
Represents the signature dictionary.
|
inline |
Creates new PdfSignature.
Creates new PdfSignature.
filter | PdfName of the signature handler to use when validating this signature |
subFilter | PdfName that describes the encoding of the signature |
|
inlinevirtual |
Gets the /ByteRange.
|
inlinevirtual |
Gets the /Cert entry value of this signature.
Gets the /Cert entry value of this signature. See ISO 32000-1 12.8.1, Table 252 – Entries in a signature dictionary.
|
inlinevirtual |
Gets the /Cert entry value of this signature.
Gets the /Cert entry value of this signature. /Cert entry required when SubFilter is adbe.x509.rsa_sha1. May be array or byte string.
|
inlinevirtual |
Gets the /Contents entry value.
Gets the /Contents entry value. See ISO 32000-1 12.8.1, Table 252 – Entries in a signature dictionary.
|
inlinevirtual |
Gets the /M value.
Gets the /M value. Should only be used if the time of signing is not available in the signature.
iText.Kernel.Pdf.PdfString which denotes time of signing.
|
inlinevirtual |
Gets the /Location entry value.
|
inlinevirtual |
gets the /Name of the person signing the document.
|
inlinevirtual |
A name that describes the encoding of the signature value and key information in the signature dictionary.
|
inlinevirtual |
The type of PDF object that the wrapped dictionary describes; if present, shall be iText.Kernel.Pdf.PdfName.Sig for a signature dictionary or iText.Kernel.Pdf.PdfName.DocTimeStamp for a timestamp signature dictionary.
The type of PDF object that the wrapped dictionary describes; if present, shall be iText.Kernel.Pdf.PdfName.Sig for a signature dictionary or iText.Kernel.Pdf.PdfName.DocTimeStamp for a timestamp signature dictionary. Shall be not null if it's value is iText.Kernel.Pdf.PdfName.DocTimeStamp . The default value is: iText.Kernel.Pdf.PdfName.Sig.
|
inlineprotectedvirtual |
Defines if the object behind this wrapper must be an indirect object in the resultant document.
Defines if the object behind this wrapper must be an indirect object in the resultant document.
If this method returns true it doesn't necessarily mean that object must be in the indirect state at any moment, but rather defines that when the object will be written to the document it will be transformed into indirect object if it's not indirect yet.
Return value of this method shouldn't depend on any logic, it should return always true or false.
Implements iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >.
|
inlinevirtual |
Sets the /ByteRange.
range | an array of pairs of integers that specifies the byte range used in the digest calculation. A pair consists of the starting byte offset and the length |
|
inlinevirtual |
Sets the /Cert value of this signature.
cert | the byte[] representing the certificate chain |
|
inlinevirtual |
Sets the /ContactInfo value.
contactInfo | information to contact the person who signed this document |
|
inlinevirtual |
Sets the /Contents value to the specified byte[].
contents | a byte[] representing the digest |
|
inlinevirtual |
Sets the /M value.
Sets the /M value. Should only be used if the time of signing is not available in the signature.
date | time of signing |
|
inlinevirtual |
Sets the /Location value.
location | physical location of signing |
|
inlinevirtual |
Sets the /Name of the person signing the document.
name | name of the person signing the document |
|
inlinevirtual |
Sets the /Reason value.
reason | reason for signing |
|
inlinevirtual |
Sets the signature creator name in the PdfSignatureBuildProperties dictionary.
signatureCreator | name of the signature creator |