Class: SSLyze::XML::Certinfo::ReceivedCertificateChain

Inherits:
Object
  • Object
show all
Includes:
HasCertificates, Types
Defined in:
lib/sslyze/xml/certinfo/received_certificate_chain.rb

Overview

Represents the <receivedCertificateChain> XML element.

Since:

  • 1.0.0

Constant Summary

Constants included from Types

Types::Boolean, Types::None

Instance Method Summary collapse

Methods included from HasCertificates

#certificates, #each_certificate, #each_intermediate, #intermediates, #leaf, #root

Constructor Details

#initialize(node) ⇒ ReceivedCertificateChain

Parameters:

  • node (Nokogiri::XML::Element)

Since:

  • 1.0.0



23
24
25
# File 'lib/sslyze/xml/certinfo/received_certificate_chain.rb', line 23

def initialize(node)
  @node = node
end

Instance Method Details

#contains_anchor_certificate?Boolean

Parses the containsAnchorCertificate XML attribute.

Returns:

Since:

  • 1.0.0



41
42
43
# File 'lib/sslyze/xml/certinfo/received_certificate_chain.rb', line 41

def contains_anchor_certificate?
  Boolean[@node['containsAnchorCertificate']]
end

#is_chain_order_valid?Boolean

Parses the isChainOrderValid XML attribute.

Returns:

Since:

  • 1.0.0



32
33
34
# File 'lib/sslyze/xml/certinfo/received_certificate_chain.rb', line 32

def is_chain_order_valid?
  Boolean[@node['isChainOrderValid']]
end