Module: R509::Cert::Extensions::GeneralNamesMixin
- Included in:
- CRLDistributionPoints, SubjectAlternativeName
- Defined in:
- lib/r509/cert/extensions/base.rb
Overview
Mixed into extensions that have a single generalnames object to simplify getting data out of them
Instance Method Summary collapse
-
#directory_names ⇒ Array<R509::Subject>
(also: #dir_names)
Directory names.
-
#dns_names ⇒ Array<String>
DNS names.
-
#ip_addresses ⇒ Array<String>
(also: #ips)
IP addresses.
-
#names ⇒ Array
Array of GeneralName objects preserving order found in the extension.
-
#rfc_822_names ⇒ Array<String>
(also: #email_names)
Email addresses.
-
#uris ⇒ Array<String>
URIs (not typically found in SAN extensions).
Instance Method Details
#directory_names ⇒ Array<R509::Subject> Also known as: dir_names
Returns directory names
96 97 98 |
# File 'lib/r509/cert/extensions/base.rb', line 96 def directory_names @general_names.directory_names end |
#dns_names ⇒ Array<String>
Returns DNS names
74 75 76 |
# File 'lib/r509/cert/extensions/base.rb', line 74 def dns_names @general_names.dns_names end |
#ip_addresses ⇒ Array<String> Also known as: ips
Returns IP addresses. They will be formatted as strings (dotted quad with optional netmask for IPv4 and colon-hexadecimal with optional netmask for IPv6
79 80 81 |
# File 'lib/r509/cert/extensions/base.rb', line 79 def ip_addresses @general_names.ip_addresses end |
#names ⇒ Array
Returns array of GeneralName objects preserving order found in the extension
102 103 104 |
# File 'lib/r509/cert/extensions/base.rb', line 102 def names @general_names.names end |
#rfc_822_names ⇒ Array<String> Also known as: email_names
Returns email addresses
85 86 87 |
# File 'lib/r509/cert/extensions/base.rb', line 85 def rfc_822_names @general_names.rfc_822_names end |
#uris ⇒ Array<String>
Returns URIs (not typically found in SAN extensions)
91 92 93 |
# File 'lib/r509/cert/extensions/base.rb', line 91 def uris @general_names.uris end |