Class: SSLyze::XML::Certinfo::ReceivedCertificateChain
- Inherits:
-
Object
- Object
- SSLyze::XML::Certinfo::ReceivedCertificateChain
- Includes:
- HasCertificates, Types
- Defined in:
- lib/sslyze/xml/certinfo/received_certificate_chain.rb
Overview
Represents the <receivedCertificateChain> XML element.
Constant Summary
Constants included from Types
Instance Method Summary collapse
-
#contains_anchor_certificate? ⇒ Boolean
Parses the
containsAnchorCertificateXML attribute. -
#initialize(node) ⇒ ReceivedCertificateChain
constructor
Initializes the ReceivedCertificateChain object.
-
#is_chain_order_valid? ⇒ Boolean
Parses the
isChainOrderValidXML attribute.
Methods included from HasCertificates
#certificates, #each_certificate, #each_intermediate, #intermediates, #leaf, #root
Constructor Details
#initialize(node) ⇒ ReceivedCertificateChain
Initializes the SSLyze::XML::Certinfo::ReceivedCertificateChain object.
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.
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.
32 33 34 |
# File 'lib/sslyze/xml/certinfo/received_certificate_chain.rb', line 32 def is_chain_order_valid? Boolean[@node['isChainOrderValid']] end |