Class: SSLyze::Certificate::Issuer
- Inherits:
-
Object
- Object
- SSLyze::Certificate::Issuer
- Defined in:
- lib/sslyze/certificate/issuer.rb
Overview
Represents the <issuer> XML element.
Instance Method Summary collapse
-
#common_name ⇒ String
Common name.
-
#country_name ⇒ String
Country name.
-
#initialize(node) ⇒ Issuer
constructor
Initializes the issuer.
-
#organization_name ⇒ String
Organization name.
-
#organizational_unit_name ⇒ String
Organizational unit name.
Constructor Details
#initialize(node) ⇒ Issuer
Initializes the issuer.
14 15 16 |
# File 'lib/sslyze/certificate/issuer.rb', line 14 def initialize(node) @node = node end |
Instance Method Details
#common_name ⇒ String
Common name.
32 33 34 |
# File 'lib/sslyze/certificate/issuer.rb', line 32 def common_name @common_name ||= @node.at('commonName').inner_text end |
#country_name ⇒ String
Country name.
23 24 25 |
# File 'lib/sslyze/certificate/issuer.rb', line 23 def country_name @country_name || @node.at('countryName').inner_text end |
#organization_name ⇒ String
Organization name.
50 51 52 |
# File 'lib/sslyze/certificate/issuer.rb', line 50 def organization_name @organization_name ||= @node.at('organizationName').inner_text end |
#organizational_unit_name ⇒ String
Organizational unit name.
41 42 43 |
# File 'lib/sslyze/certificate/issuer.rb', line 41 def organizational_unit_name @organizational_unit_name ||= @node.at('organizationalUnitName').inner_text end |