class SSLyze::XML::Certinfo::OCSPStapling
Represents the `<ocspStapling>` XML
element.
@since 1.0.0
Public Class Methods
new(node)
click to toggle source
Initializes the {OCSPStapling} object.
@param [Nokogiri::XML::Element] node
The `<ocspStapling>` XML element.
# File lib/sslyze/xml/certinfo/ocsp_stapling.rb, line 23 def initialize(node) @node = node end
Public Instance Methods
ocsp_response()
click to toggle source
The OCSP Response.
@return [OCSPResponse, nil]
@note Parses the `<ocspResponse>` XML
element.
# 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
Also aliased as: response