Class: CertificateAuthority::Extensions::ExtendedKeyUsage
- Inherits:
-
Object
- Object
- CertificateAuthority::Extensions::ExtendedKeyUsage
- Includes:
- ExtensionAPI
- Defined in:
- lib/certificate_authority/extensions.rb
Instance Attribute Summary collapse
-
#usage ⇒ Object
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize ⇒ ExtendedKeyUsage
constructor
A new instance of ExtendedKeyUsage.
- #openssl_identifier ⇒ Object
- #to_s ⇒ Object
Methods included from ExtensionAPI
Constructor Details
#initialize ⇒ ExtendedKeyUsage
Returns a new instance of ExtendedKeyUsage.
143 144 145 |
# File 'lib/certificate_authority/extensions.rb', line 143 def initialize self.usage = ["serverAuth","clientAuth"] end |
Instance Attribute Details
#usage ⇒ Object
Returns the value of attribute usage.
141 142 143 |
# File 'lib/certificate_authority/extensions.rb', line 141 def usage @usage end |
Instance Method Details
#openssl_identifier ⇒ Object
147 148 149 |
# File 'lib/certificate_authority/extensions.rb', line 147 def openssl_identifier "extendedKeyUsage" end |
#to_s ⇒ Object
151 152 153 |
# File 'lib/certificate_authority/extensions.rb', line 151 def to_s "#{self.usage.join(',')}" end |