Class: CertificateAuthority::Extensions::AuthorityInfoAccess

Inherits:
Object
  • Object
show all
Includes:
ExtensionAPI
Defined in:
lib/certificate_authority/extensions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ExtensionAPI

#config_extensions

Constructor Details

#initializeAuthorityInfoAccess

Returns a new instance of AuthorityInfoAccess.



106
107
108
# File 'lib/certificate_authority/extensions.rb', line 106

def initialize
  self.ocsp = []
end

Instance Attribute Details

#ocspObject

Returns the value of attribute ocsp.



104
105
106
# File 'lib/certificate_authority/extensions.rb', line 104

def ocsp
  @ocsp
end

Instance Method Details

#openssl_identifierObject



110
111
112
# File 'lib/certificate_authority/extensions.rb', line 110

def openssl_identifier
  "authorityInfoAccess"
end

#to_sObject



114
115
116
117
# File 'lib/certificate_authority/extensions.rb', line 114

def to_s
  return "" if self.ocsp.empty?
  "OCSP;URI:#{self.ocsp}"
end