Class: PkiExpress::SignatureExplorer

Inherits:
PkiExpressOperator show all
Defined in:
lib/pki_express/signature_explorer.rb

Direct Known Subclasses

PadesSignatureExplorer

Instance Attribute Summary collapse

Attributes inherited from PkiExpressOperator

#offline, #signature_policy, #timestamp_authority, #trust_lacuna_test_root

Instance Method Summary collapse

Methods inherited from PkiExpressOperator

#add_file_reference, #add_trusted_root, finalize

Constructor Details

#initialize(config = PkiExpressConfig.new) ⇒ SignatureExplorer

Returns a new instance of SignatureExplorer.



5
6
7
8
9
# File 'lib/pki_express/signature_explorer.rb', line 5

def initialize(config=PkiExpressConfig.new)
  super(config)
  @signature_file_path = nil
  @validate = nil
end

Instance Attribute Details

#validateObject

Returns the value of attribute validate.



3
4
5
# File 'lib/pki_express/signature_explorer.rb', line 3

def validate
  @validate
end

Instance Method Details

#signature_file=(content_raw) ⇒ Object

region The “signature_file” accessors



13
14
15
# File 'lib/pki_express/signature_explorer.rb', line 13

def signature_file=(content_raw)
  _set_signature_file(content_raw)
end

#signature_file_base64=(content_base64) ⇒ Object



30
31
32
# File 'lib/pki_express/signature_explorer.rb', line 30

def signature_file_base64=(content_base64)
  _set_signature_file_base64(content_base64)
end

#signature_file_path=(path) ⇒ Object



49
50
51
# File 'lib/pki_express/signature_explorer.rb', line 49

def signature_file_path=(path)
  _set_signature_file_path(path)
end

#verify_and_add_common_options(args) ⇒ Object

endregion



66
67
68
69
70
71
72
73
# File 'lib/pki_express/signature_explorer.rb', line 66

def verify_and_add_common_options(args)
  if @validate
    args << '--validate'
    # This operation can only be on versions greater

    # than 1.3 of the PKI Express.

    @version_manager.require_version('1.3')
  end
end