class HexaPDF:: DigitalSignature:: Signature
Parent | HexaPDF::Dictionary |
---|
Represents a digital signature that is used to authenticate a user and the contents of the document.
Signature
Verification¶ ↑
Verification of signatures is a complex topic and what counts as completely verified may differ from use-case to use-case. Therefore HexaPDF
provides as much diagnostic information as possible so that the user can decide whether a signature is valid.
By defining a custom signature handler based on BaseHandler or CMSHandler
one is able to also customize the signature verification.
See: PDF2.0 s12.8.1, HexaPDF::Type::AcroForm::SignatureField
Field Definitions
Name | Type/Allowed Values | Required | Default Value |
---|---|---|---|
Type | Symbol One of: :Sig, :DocTimeStamp | false | :Sig |
Filter | Symbol | false | nil |
SubFilter | Symbol | false | nil |
Contents | HexaPDF::DictionaryFields::PDFByteString or String | false | nil |
Cert | HexaPDF::PDFArray or HexaPDF::DictionaryFields::PDFByteString or Array or String | false | nil |
ByteRange | HexaPDF::PDFArray or Array | false | nil |
Reference | HexaPDF::PDFArray or Array | false | nil |
Changes | HexaPDF::PDFArray or Array | false | nil |
Name | String | false | nil |
M | HexaPDF::DictionaryFields::PDFDate or String or Time or Date or DateTime | false | nil |
Location | String | false | nil |
Reason | String | false | nil |
ContactInfo | String | false | nil |
R | Integer | false | nil |
V | Integer | false | 0 |
Prop_Build | HexaPDF::Dictionary or Hash | false | nil |
Prop_AuthTime | Integer | false | nil |
Prop_AuthType | Symbol One of: :PIN, :Password, :Fingerprint | false | nil |
Public Instance Methods
Returns the raw signature value.
Returns the signature handler for this signature based on the /SubFilter entry.
Returns the signature type based on the /SubFilter.
Returns the signed data as indicated by the /ByteRange entry as binary string.
Returns the name of the person or authority that signed the document.
Returns the location of the signing.
Returns the reason for the signing.
Returns the time of the signing.
Returns a VerificationResult
object with the verification information.