Class: PkiExpress::SignatureStarter
Instance Attribute Summary
#culture, #offline, #signature_policy, #time_zone, #timestamp_authority, #trust_lacuna_test_root
Class Method Summary
collapse
Instance Method Summary
collapse
#add_file_reference, #add_trusted_root, finalize
Constructor Details
#initialize(config = PkiExpressConfig.new) ⇒ SignatureStarter
Returns a new instance of SignatureStarter.
5
6
7
8
|
# File 'lib/pki_express/signature_starter.rb', line 5
def initialize(config=PkiExpressConfig.new)
super(config)
@certificate_path = nil
end
|
Class Method Details
.get_result(response, transfer_file) ⇒ Object
102
103
104
105
106
107
108
109
|
# File 'lib/pki_express/signature_starter.rb', line 102
def self.get_result(response, transfer_file)
{
toSignHash: response[0],
digestAlgorithmName: response[1],
digestAlgorithmOid: response[2],
transferFile: transfer_file
}
end
|
Instance Method Details
#certificate ⇒ Object
region The “certificate” accessors
12
13
14
|
# File 'lib/pki_express/signature_starter.rb', line 12
def certificate
_get_certificate
end
|
#certificate=(content_raw) ⇒ Object
25
26
27
|
# File 'lib/pki_express/signature_starter.rb', line 25
def certificate=(content_raw)
_set_certificate(content_raw)
end
|
#certificate_base64 ⇒ Object
42
43
44
|
# File 'lib/pki_express/signature_starter.rb', line 42
def certificate_base64
_get_certificate_base64
end
|
#certificate_base64=(content_base64) ⇒ Object
56
57
58
|
# File 'lib/pki_express/signature_starter.rb', line 56
def certificate_base64=(content_base64)
_set_certificate_base64(content_base64)
end
|
#certificate_path ⇒ Object
75
76
77
|
# File 'lib/pki_express/signature_starter.rb', line 75
def certificate_path
_get_certificate_path
end
|
#certificate_path=(path) ⇒ Object
84
85
86
|
# File 'lib/pki_express/signature_starter.rb', line 84
def certificate_path=(path)
_set_certificate_path(path)
end
|
#start ⇒ Object
111
112
113
|
# File 'lib/pki_express/signature_starter.rb', line 111
def start
raise NotImplementedError.new('This method is not implemented')
end
|