Class: SSLyze::X509::Extensions::CRLDistributionPoints

Inherits:
SSLyze::X509::Extension show all
Includes:
Enumerable
Defined in:
lib/sslyze/x509/extensions/crl_distribution_points.rb

Overview

Represents the crlDistributionPoints X509v3 extension.

Since:

  • 1.0.0

Instance Method Summary collapse

Instance Method Details

#each {|uri| ... } ⇒ Enumerator

Enumerates over each uri value within the crlDistributionPoiints extension.

Yields:

  • (uri)

    The given block will be passed each CRL URI.

Yield Parameters:

  • uri (URI::Generic)

    A parsed URI: value from within the extension value.

Returns:

  • (Enumerator)

    If no block is given, an Enumerator will be returned.

Since:

  • 1.0.0



40
41
42
# File 'lib/sslyze/x509/extensions/crl_distribution_points.rb', line 40

def each(&block)
  uris.each(&block)
end

#urisArray<URI::Generic>

All URI: values.

Returns:

  • (Array<URI::Generic>)

    All parsed URI: values from within the extension value.

Since:

  • 1.0.0



23
24
25
# File 'lib/sslyze/x509/extensions/crl_distribution_points.rb', line 23

def uris
  @uris ||= value.scan(/URI:(.+)/).map { |(uri)| URI.parse(uri) }
end