Method: HexaPDF::DigitalSignature::CMSHandler#initialize
- Defined in:
- lib/hexapdf/digital_signature/cms_handler.rb
#initialize(signature_dict) ⇒ CMSHandler
Creates a new signature handler for the given signature dictionary.
50 51 52 53 54 55 56 57 |
# File 'lib/hexapdf/digital_signature/cms_handler.rb', line 50 def initialize(signature_dict) super begin @pkcs7 = OpenSSL::PKCS7.new(signature_dict.contents) rescue raise HexaPDF::Error, "Signature contents is invalid" end end |