Sha256: 093e6b8192d3b7f8fb3ac03f984fd70006b8aaa91bb6ced3c304b9f6e92dac52
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
Contents
require 'sslyze/certificate/extensions/extension' module SSLyze class Certificate class Extensions # # Represents the `<X509v3CertificatePolicies>` XML element. # class X509v3CertificatePolicies < Extension # # The certificate policy. # # @return [Array<String>] # def policy @policy ||= @node.search('Policy/listEntry').map(&:inner_text) end # # The explicit text. # # @return [Array<String>] # def explicit_text @explicit_text ||= @node.search('ExplicitText/listEntry').map(&:inner_text) end # # The CPS. # # @return [Array<String>] # def cps @cps ||= @node.search('CPS/listEntry').map(&:inner_text) end # # User notice. # # @return [String, nil] # def user_notice @user_notice ||= @node.search('userNotice/listEntry').map(&:inner_text) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems