Class: CertificateAuthority::Extensions::AuthorityInfoAccess
- Inherits:
-
Object
- Object
- CertificateAuthority::Extensions::AuthorityInfoAccess
- Includes:
- ExtensionAPI
- Defined in:
- lib/certificate_authority/extensions.rb
Instance Attribute Summary collapse
-
#ocsp ⇒ Object
Returns the value of attribute ocsp.
Instance Method Summary collapse
-
#initialize ⇒ AuthorityInfoAccess
constructor
A new instance of AuthorityInfoAccess.
- #openssl_identifier ⇒ Object
- #to_s ⇒ Object
Methods included from ExtensionAPI
Constructor Details
#initialize ⇒ AuthorityInfoAccess
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
#ocsp ⇒ Object
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_identifier ⇒ Object
110 111 112 |
# File 'lib/certificate_authority/extensions.rb', line 110 def openssl_identifier "authorityInfoAccess" end |
#to_s ⇒ Object
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 |