Class: SSLyze::XML::Certinfo::OCSPStapling
- Inherits:
-
Object
- Object
- SSLyze::XML::Certinfo::OCSPStapling
- Includes:
- Attributes::IsSupported
- Defined in:
- lib/sslyze/xml/certinfo/ocsp_stapling.rb,
lib/sslyze/xml/certinfo/ocsp_stapling/ocsp_response.rb
Overview
Represents the <ocspStapling>
XML element.
Defined Under Namespace
Classes: OCSPResponse
Constant Summary
Constants included from Types
Instance Method Summary collapse
-
#initialize(node) ⇒ OCSPStapling
constructor
Initializes the OCSPStapling object.
-
#ocsp_response ⇒ OCSPResponse?
(also: #response)
The OCSP Response.
Methods included from Attributes::IsSupported
Constructor Details
#initialize(node) ⇒ OCSPStapling
Initializes the SSLyze::XML::Certinfo::OCSPStapling object.
23 24 25 |
# File 'lib/sslyze/xml/certinfo/ocsp_stapling.rb', line 23 def initialize(node) @node = node end |
Instance Method Details
#ocsp_response ⇒ OCSPResponse? Also known as: response
Note:
Parses the <ocspResponse>
XML element.
The OCSP Response.
34 35 36 37 38 |
# File 'lib/sslyze/xml/certinfo/ocsp_stapling.rb', line 34 def ocsp_response @ocsp_response ||= if (element = @node.at_xpath('ocspResponse')) OCSPResponse.new(element) end end |