Class: SignatureDfe::Inutilizacao
- Inherits:
-
Object
- Object
- SignatureDfe::Inutilizacao
- Defined in:
- lib/signature_dfe/disabling.rb
Class Method Summary collapse
Class Method Details
.digest_value(xml) ⇒ Object
3 4 5 |
# File 'lib/signature_dfe/disabling.rb', line 3 def self.digest_value(xml) SignatureDfe::Xml.calc_digest_value('infInut', xml) end |
.sign(xml) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/signature_dfe/disabling.rb', line 11 def self.sign(xml) digest_value_ = digest_value xml event_id = SignatureDfe::Xml.namespace_value('Id', xml) = { id: event_id, digest_value: digest_value_, signature_value: signature_value(event_id, digest_value_) } SignatureDfe::Xml.build_signature() end |
.signature_value(event_id, digest_value) ⇒ Object
7 8 9 |
# File 'lib/signature_dfe/disabling.rb', line 7 def self.signature_value(event_id, digest_value) SignatureDfe::Xml.build_signed_info(event_id, digest_value) end |