Class: CertificateAuthority::Extensions::BasicContraints
- Inherits:
-
Object
- Object
- CertificateAuthority::Extensions::BasicContraints
- Includes:
- ActiveModel::Validations, ExtensionAPI
- Defined in:
- lib/certificate_authority/extensions.rb
Instance Attribute Summary collapse
-
#ca ⇒ Object
Returns the value of attribute ca.
-
#path_len ⇒ Object
Returns the value of attribute path_len.
Instance Method Summary collapse
-
#initialize ⇒ BasicContraints
constructor
A new instance of BasicContraints.
- #is_ca? ⇒ Boolean
- #openssl_identifier ⇒ Object
- #to_s ⇒ Object
Methods included from ExtensionAPI
Constructor Details
#initialize ⇒ BasicContraints
Returns a new instance of BasicContraints.
24 25 26 |
# File 'lib/certificate_authority/extensions.rb', line 24 def initialize self.ca = false end |
Instance Attribute Details
#ca ⇒ Object
Returns the value of attribute ca.
20 21 22 |
# File 'lib/certificate_authority/extensions.rb', line 20 def ca @ca end |
#path_len ⇒ Object
Returns the value of attribute path_len.
21 22 23 |
# File 'lib/certificate_authority/extensions.rb', line 21 def path_len @path_len end |
Instance Method Details
#is_ca? ⇒ Boolean
28 29 30 |
# File 'lib/certificate_authority/extensions.rb', line 28 def is_ca? self.ca end |
#openssl_identifier ⇒ Object
37 38 39 |
# File 'lib/certificate_authority/extensions.rb', line 37 def openssl_identifier "basicConstraints" end |
#to_s ⇒ Object
41 42 43 44 45 46 |
# File 'lib/certificate_authority/extensions.rb', line 41 def to_s result = "" result += "CA:#{self.ca}" result += ",pathlen:#{self.path_len}" unless self.path_len.nil? result end |