class HexaPDF::DigitalSignature::Handler

Parent

The base signature handler providing common functionality.

Specific signature handlers need to override methods if necessary and implement the needed ones that don’t have a default implementation.

Attributes

signature_dict[R]

The signature dictionary used by the handler.

Public Class Methods

new(signature_dict)

Creates a new signature handler for the given signature dictionary.

Public Instance Methods

certificate_chain()

Returns the certificate chain.

Needs to be implemented by specific handlers.

signer_certificate()

Returns the certificate used for signing.

Needs to be implemented by specific handlers.

signer_name()

Returns the common name of the signer (/Name field of the signature dictionary).

signing_time()

Returns the time of signing (/M field of the signature dictionary).

verify(store, allow_self_signed: false)

Verifies general signature properties and prepares the provided OpenSSL::X509::Store object for use by concrete implementations.

Needs to be called by specific handlers.

Protected Instance Methods

check_certified_signature(result)

Sets an informational message on result whether the signature is a certified signature.

store_verification_callback(result, allow_self_signed: false)

Returns the block that should be used as the OpenSSL::X509::Store verification callback.

result

The VerificationResult object that should be updated if problems are found.

allow_self_signed

Specifies whether self-signed certificates are allowed.

verify_signing_time(result)

Verifies that the signing time was within the validity period of the signer certificate.