Class: SSLyze::XML::HTTPHeaders

Inherits:
Plugin
  • Object
show all
Defined in:
lib/sslyze/xml/http_headers.rb,
lib/sslyze/xml/http_headers/http_public_key_pinning.rb,
lib/sslyze/xml/http_headers/http_strict_transport_security.rb

Overview

Represents the <http_headers> XML element.

Since:

  • 1.0.0

Defined Under Namespace

Classes: HTTPPublicKeyPinning, HTTPStrictTransportSecurity

Instance Method Summary collapse

Methods inherited from Plugin

#initialize

Methods included from Attributes::Exception

#exception, #exception?

Methods included from Attributes::Title

#title, #to_s

Constructor Details

This class inherits a constructor from SSLyze::XML::Plugin

Instance Method Details

#http_public_key_pinningHTTPPublicKeyPinning? Also known as: public_key_pinning

HTTP Public-Key-Pinning header information.

Returns:

Since:

  • 1.0.0



32
33
34
35
36
# File 'lib/sslyze/xml/http_headers.rb', line 32

def http_public_key_pinning
  @http_public_key_pinning ||= if (element = @node.at_xpath('httpPublicKeyPinning'))
                                 HTTPPublicKeyPinning.new(element)
                               end
end

#http_strict_transport_securityHTTPStrictTransportSecurity? Also known as: strict_transport_security

HTTP Strict-Transport-Security header information.

Returns:

Since:

  • 1.0.0



19
20
21
22
23
# File 'lib/sslyze/xml/http_headers.rb', line 19

def http_strict_transport_security
  @http_strict_transport_security ||= if (element = @node.at_xpath('httpStrictTransportSecurity'))
                                        HTTPStrictTransportSecurity.new(element)
                                      end
end