Class: PkiExpress::SignatureExplorer
- Inherits:
-
PkiExpressOperator
- Object
- PkiExpressOperator
- PkiExpress::SignatureExplorer
- Defined in:
- lib/pki_express/signature_explorer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#validate ⇒ Object
Returns the value of attribute validate.
Attributes inherited from PkiExpressOperator
#offline, #signature_policy, #timestamp_authority, #trust_lacuna_test_root
Instance Method Summary collapse
-
#initialize(config = PkiExpressConfig.new) ⇒ SignatureExplorer
constructor
A new instance of SignatureExplorer.
-
#signature_file=(content_raw) ⇒ Object
region The “signature_file” accessors.
- #signature_file_base64=(content_base64) ⇒ Object
- #signature_file_path=(path) ⇒ Object
-
#verify_and_add_common_options(args) ⇒ Object
endregion.
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
#validate ⇒ Object
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 (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 |