Class: CertificateAuthority::Extensions::KeyUsage
- Inherits:
-
Object
- Object
- CertificateAuthority::Extensions::KeyUsage
- 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 ⇒ KeyUsage
constructor
A new instance of KeyUsage.
- #openssl_identifier ⇒ Object
- #to_s ⇒ Object
Methods included from ExtensionAPI
Constructor Details
#initialize ⇒ KeyUsage
Returns a new instance of KeyUsage.
125 126 127 |
# File 'lib/certificate_authority/extensions.rb', line 125 def initialize self.usage = ["digitalSignature", "nonRepudiation"] end |
Instance Attribute Details
#usage ⇒ Object
Returns the value of attribute usage.
123 124 125 |
# File 'lib/certificate_authority/extensions.rb', line 123 def usage @usage end |
Instance Method Details
#openssl_identifier ⇒ Object
129 130 131 |
# File 'lib/certificate_authority/extensions.rb', line 129 def openssl_identifier "keyUsage" end |
#to_s ⇒ Object
133 134 135 |
# File 'lib/certificate_authority/extensions.rb', line 133 def to_s "#{self.usage.join(',')}" end |