Class: CertificateAuthority::Extensions::NetscapeComment
- Inherits:
-
Object
- Object
- CertificateAuthority::Extensions::NetscapeComment
- Includes:
- ExtensionAPI
- Defined in:
- lib/certificate_authority/extensions.rb
Overview
DEPRECATED Contains a comment which will be displayed when the certificate is viewed in some browsers. www.openssl.org/docs/apps/x509v3_config.html#Netscape_String_extensions_
Constant Summary collapse
- OPENSSL_IDENTIFIER =
"nsComment"
Instance Attribute Summary collapse
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#critical ⇒ Object
Returns the value of attribute critical.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ NetscapeComment
constructor
A new instance of NetscapeComment.
- #openssl_identifier ⇒ Object
- #to_s ⇒ Object
Methods included from ExtensionAPI
Constructor Details
#initialize ⇒ NetscapeComment
Returns a new instance of NetscapeComment.
614 615 616 |
# File 'lib/certificate_authority/extensions.rb', line 614 def initialize self.critical = false end |
Instance Attribute Details
#comment ⇒ Object
Returns the value of attribute comment.
612 613 614 |
# File 'lib/certificate_authority/extensions.rb', line 612 def comment @comment end |
#critical ⇒ Object
Returns the value of attribute critical.
611 612 613 |
# File 'lib/certificate_authority/extensions.rb', line 611 def critical @critical end |
Class Method Details
.parse(value, critical) ⇒ Object
628 629 630 631 632 633 634 |
# File 'lib/certificate_authority/extensions.rb', line 628 def self.parse(value, critical) obj = self.new return obj if value.nil? obj.critical = critical obj.comment = value obj end |
Instance Method Details
#openssl_identifier ⇒ Object
618 619 620 |
# File 'lib/certificate_authority/extensions.rb', line 618 def openssl_identifier OPENSSL_IDENTIFIER end |
#to_s ⇒ Object
622 623 624 625 626 |
# File 'lib/certificate_authority/extensions.rb', line 622 def to_s res = [] res << self.comment if self.comment res.join(',') end |