Class: Fiscalizer::Serializers::Signature
- Inherits:
-
Object
- Object
- Fiscalizer::Serializers::Signature
- Defined in:
- lib/fiscalizer/serializers/signature.rb
Instance Attribute Summary collapse
-
#cert_issuer ⇒ Object
readonly
Returns the value of attribute cert_issuer.
-
#public_key ⇒ Object
readonly
Returns the value of attribute public_key.
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(xml, reference, public_key, cert_issuer) ⇒ Signature
constructor
A new instance of Signature.
Constructor Details
#initialize(xml, reference, public_key, cert_issuer) ⇒ Signature
Returns a new instance of Signature.
4 5 6 7 8 9 |
# File 'lib/fiscalizer/serializers/signature.rb', line 4 def initialize(xml, reference, public_key, cert_issuer) @xml = xml @reference = reference @public_key = public_key @cert_issuer = cert_issuer end |
Instance Attribute Details
#cert_issuer ⇒ Object (readonly)
Returns the value of attribute cert_issuer.
11 12 13 |
# File 'lib/fiscalizer/serializers/signature.rb', line 11 def cert_issuer @cert_issuer end |
#public_key ⇒ Object (readonly)
Returns the value of attribute public_key.
11 12 13 |
# File 'lib/fiscalizer/serializers/signature.rb', line 11 def public_key @public_key end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
11 12 13 |
# File 'lib/fiscalizer/serializers/signature.rb', line 11 def reference @reference end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
11 12 13 |
# File 'lib/fiscalizer/serializers/signature.rb', line 11 def xml @xml end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/fiscalizer/serializers/signature.rb', line 13 def call xml.Signature('xmlns' => 'http://www.w3.org/2000/09/xmldsig#') do add_signed_info add_signature_value add_key_info end end |