Class: ZATCA::UBL::Signing::SignedSignatureProperties
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- ZATCA::UBL::Signing::SignedSignatureProperties
- Defined in:
- lib/zatca/ubl/signing/signed_signature_properties.rb
Constant Summary
Constants inherited from BaseComponent
BaseComponent::ArrayOfBaseComponentOrNil
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
- #elements ⇒ Object
-
#initialize(signing_time:, cert_digest_value:, cert_issuer_name:, cert_serial_number:) ⇒ SignedSignatureProperties
constructor
A new instance of SignedSignatureProperties.
- #name ⇒ Object
Methods inherited from BaseComponent
#[], build, #build_xml, #dig, #find_nested_element_by_path, #generate_xml, #schema, #to_h, #to_xml
Constructor Details
#initialize(signing_time:, cert_digest_value:, cert_issuer_name:, cert_serial_number:) ⇒ SignedSignatureProperties
Returns a new instance of SignedSignatureProperties.
2 3 4 5 6 7 8 9 |
# File 'lib/zatca/ubl/signing/signed_signature_properties.rb', line 2 def initialize(signing_time:, cert_digest_value:, cert_issuer_name:, cert_serial_number:) super() @signing_time = signing_time @cert_digest_value = cert_digest_value @cert_issuer_name = cert_issuer_name @cert_serial_number = cert_serial_number end |
Instance Method Details
#elements ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/zatca/ubl/signing/signed_signature_properties.rb', line 15 def elements [ ZATCA::UBL::BaseComponent.new(name: "xades:SigningTime", value: @signing_time), ZATCA::UBL::BaseComponent.new(name: "xades:SigningCertificate", elements: [ ZATCA::UBL::Signing::Cert.new(cert_digest_value: @cert_digest_value, cert_issuer_name: @cert_issuer_name, cert_serial_number: @cert_serial_number) ]) ] end |
#name ⇒ Object
11 12 13 |
# File 'lib/zatca/ubl/signing/signed_signature_properties.rb', line 11 def name "xades:SignedSignatureProperties" end |