Class: Moxml::Signature::Model::Key::X509Data
- Inherits:
-
Object
- Object
- Moxml::Signature::Model::Key::X509Data
- Defined in:
- lib/moxml/signature/model/key/x509_data.rb
Overview
ds:X509Data (spec §4.5.4) — container for certificate identifiers. May carry X509IssuerSerial, X509SubjectName, X509SKI, X509Certificate, X509CRL, and dsig11:X509Digest children, all describing the same key.
Instance Attribute Summary collapse
-
#certificates ⇒ Object
Returns the value of attribute certificates.
-
#crls ⇒ Object
Returns the value of attribute crls.
-
#digests ⇒ Object
Returns the value of attribute digests.
-
#issuer_serial ⇒ Object
Returns the value of attribute issuer_serial.
-
#subject_key_id ⇒ Object
Returns the value of attribute subject_key_id.
-
#subject_name ⇒ Object
Returns the value of attribute subject_name.
Instance Method Summary collapse
- #first_certificate ⇒ Object
-
#initialize(issuer_serial: nil, subject_name: nil, subject_key_id: nil, certificates: [], crls: [], digests: []) ⇒ X509Data
constructor
A new instance of X509Data.
Constructor Details
#initialize(issuer_serial: nil, subject_name: nil, subject_key_id: nil, certificates: [], crls: [], digests: []) ⇒ X509Data
Returns a new instance of X509Data.
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/moxml/signature/model/key/x509_data.rb', line 14 def initialize(issuer_serial: nil, subject_name: nil, subject_key_id: nil, certificates: [], crls: [], digests: []) @issuer_serial = issuer_serial @subject_name = subject_name @subject_key_id = subject_key_id @certificates = Array(certificates) @crls = Array(crls) @digests = Array(digests) end |
Instance Attribute Details
#certificates ⇒ Object
Returns the value of attribute certificates.
11 12 13 |
# File 'lib/moxml/signature/model/key/x509_data.rb', line 11 def certificates @certificates end |
#crls ⇒ Object
Returns the value of attribute crls.
11 12 13 |
# File 'lib/moxml/signature/model/key/x509_data.rb', line 11 def crls @crls end |
#digests ⇒ Object
Returns the value of attribute digests.
11 12 13 |
# File 'lib/moxml/signature/model/key/x509_data.rb', line 11 def digests @digests end |
#issuer_serial ⇒ Object
Returns the value of attribute issuer_serial.
11 12 13 |
# File 'lib/moxml/signature/model/key/x509_data.rb', line 11 def issuer_serial @issuer_serial end |
#subject_key_id ⇒ Object
Returns the value of attribute subject_key_id.
11 12 13 |
# File 'lib/moxml/signature/model/key/x509_data.rb', line 11 def subject_key_id @subject_key_id end |
#subject_name ⇒ Object
Returns the value of attribute subject_name.
11 12 13 |
# File 'lib/moxml/signature/model/key/x509_data.rb', line 11 def subject_name @subject_name end |
Instance Method Details
#first_certificate ⇒ Object
25 26 27 |
# File 'lib/moxml/signature/model/key/x509_data.rb', line 25 def first_certificate certificates.first end |