class HexaPDF:: Type:: DocumentSecurityStore
| Parent | HexaPDF::Dictionary |
|---|
The document security store (DSS) dictionary contains data needed for verifying digital signatures.
See: PDF2.0 s12.8.4.3
Field Definitions
| Name | Type/Allowed Values | Required | Default Value |
|---|---|---|---|
| Type | Symbol | false | :DSS |
| VRI | HexaPDF::Dictionary or Hash | false | nil |
| Certs | HexaPDF::PDFArray or Array | false | nil |
| OCSPs | HexaPDF::PDFArray or Array | false | nil |
| CRLs | HexaPDF::PDFArray or Array | false | nil |
Public Instance Methods
Adds the DER-encoded certificate to the /Certs array if not already present and returns the stream object containing it.
Adds the DER-encoded CRL to the /CRLs array if not already present and returns the stream object containing it.
Adds the DER-encoded OCSP response to the /OCSPs array if not already present and returns the stream object containing it.
Adds validation data for a single signature to the /VRI dictionary and to the various arrays, and returns the new VRI entry.
signature-
The signature for which the validation data should be added.
certs-
Array of DER-encoded certificates.
ocsps-
Array of DER-encoded OCSP responses.
crls-
Array of DER-encoded CRLs.
Returns all certificates in the /Certs array as OpenSSL::X509::Certificate objects.
Returns the VRI dictionary for the given signature if it exists or else nil.