Class: R509::Cert::Extensions::AuthorityInfoAccess

Inherits:
OpenSSL::X509::Extension
  • Object
show all
Defined in:
lib/r509/cert/extensions.rb

Overview

Implements the AuthorityInfoAccess certificate extension, with methods to provide access to the components and meaning of the extension's contents.

Constant Summary

OID =
"authorityInfoAccess"

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (AuthorityInfoAccess) initialize(*args)

See OpenSSL::X509::Extension#initialize



236
237
238
239
240
241
# File 'lib/r509/cert/extensions.rb', line 236

def initialize(*args)
  super(*args)

  @ocsp_uris = self.value.scan( /OCSP - #{URI_REGEX}/ ).map { |match| match[0] }
  @ca_issuers_uris = self.value.scan( /CA Issuers - #{URI_REGEX}/ ).map { |match| match[0] }
end

Instance Attribute Details

- (Object) ca_issuers_uris (readonly)

An array of the CA issuers URIs, if any



233
234
235
# File 'lib/r509/cert/extensions.rb', line 233

def ca_issuers_uris
  @ca_issuers_uris
end

- (Object) ocsp_uris (readonly)

An array of the OCSP URIs, if any



231
232
233
# File 'lib/r509/cert/extensions.rb', line 231

def ocsp_uris
  @ocsp_uris
end