Class: CertificateAuthority::Extensions::ExtendedKeyUsage

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

#initializeExtendedKeyUsage

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

#usageObject

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_identifierObject



147
148
149
# File 'lib/certificate_authority/extensions.rb', line 147

def openssl_identifier
  "extendedKeyUsage"
end

#to_sObject



151
152
153
# File 'lib/certificate_authority/extensions.rb', line 151

def to_s
  "#{self.usage.join(',')}"
end