class SSLyze::XML::Certinfo::CertificateValidation
Represents the `<certificateValidation>` XML
element.
@since 1.0.0
Public Class Methods
new(node)
click to toggle source
Initializes the {CertificateValidation} object.
@param [Nokogiri::XML::Element] node
The `<certificateValidation>` XML element.
# File lib/sslyze/xml/certinfo/certificate_validation.rb, line 21 def initialize(node) @node = node end
Public Instance Methods
each_path_validation() { |path_validation| ... }
click to toggle source
Enumerates over the path-based validation information.
@yield [path_validation]
@yieldparam [PathValidation] path_validation
@return [Enumerator]
# File lib/sslyze/xml/certinfo/certificate_validation.rb, line 47 def each_path_validation return enum_for(__method__) unless block_given? @node.xpath('pathValidation').each do |element| yield PathValidation.new(element) end end
hostname_validation()
click to toggle source
Hostname based validation information.
@return [HostnameValidation]
# File lib/sslyze/xml/certinfo/certificate_validation.rb, line 30 def hostname_validation @hostname_validation ||= HostnameValidation.new( @node.at_xpath('hostnameValidation') ) end
Also aliased as: hostname
path_validations()
click to toggle source
@return [Array<PathValidation>]
@see each_path_validation
# File lib/sslyze/xml/certinfo/certificate_validation.rb, line 60 def path_validations each_path_validation.to_a end
Also aliased as: path