Class: RestPki::SignatureFinisher
- Inherits:
-
Object
- Object
- RestPki::SignatureFinisher
- Defined in:
- lib/rest_pki/signature_finisher.rb
Direct Known Subclasses
CadesSignatureFinisher, PadesSignatureFinisher, XmlSignatureFinisher
Instance Attribute Summary collapse
-
#signature ⇒ Object
Returns the value of attribute signature.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
- #certificate_info ⇒ Object
- #finish ⇒ Object
- #get_callback_argument ⇒ Object
-
#initialize(restpki_client) ⇒ SignatureFinisher
constructor
A new instance of SignatureFinisher.
Constructor Details
#initialize(restpki_client) ⇒ SignatureFinisher
Returns a new instance of SignatureFinisher.
6 7 8 9 10 11 12 13 |
# File 'lib/rest_pki/signature_finisher.rb', line 6 def initialize(restpki_client) @restpki_client = restpki_client @token = nil @signature = nil @callback_argument = nil @certificate_info = nil @done = false end |
Instance Attribute Details
#signature ⇒ Object
Returns the value of attribute signature.
4 5 6 |
# File 'lib/rest_pki/signature_finisher.rb', line 4 def signature @signature end |
#token ⇒ Object
Returns the value of attribute token.
4 5 6 |
# File 'lib/rest_pki/signature_finisher.rb', line 4 def token @token end |
Instance Method Details
#certificate_info ⇒ Object
26 27 28 29 30 31 |
# File 'lib/rest_pki/signature_finisher.rb', line 26 def certificate_info unless @done raise 'The field "certificate_info" can only be accessed after calling the finish method' end @certificate_info end |
#finish ⇒ Object
15 16 17 |
# File 'lib/rest_pki/signature_finisher.rb', line 15 def finish raise "#{self.class.name}#finish is an abstract method." end |
#get_callback_argument ⇒ Object
19 20 21 22 23 24 |
# File 'lib/rest_pki/signature_finisher.rb', line 19 def get_callback_argument unless @done raise 'The field "callback_argument" can only be accessed after calling the finish method' end @callback_argument end |