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)

Instance Method Details

- (Array<R509::Subject>) directory_names Also known as: dir_names

Directory names

Returns:



97
98
99
# File 'lib/r509/cert/extensions/base.rb', line 97

def directory_names
  @general_names.directory_names
end

- (Array<String>) dns_names

DNS names

Returns:

  • (Array<String>)

    DNS names



75
76
77
# File 'lib/r509/cert/extensions/base.rb', line 75

def dns_names
  @general_names.dns_names
end

- (Array<String>) ip_addresses Also known as: ips

IP addresses. They will be formatted as strings (dotted quad with optional netmask for IPv4 and colon-hexadecimal with optional netmask for IPv6

Returns:

  • (Array<String>)

    IP addresses. They will be formatted as strings (dotted quad with optional netmask for IPv4 and colon-hexadecimal with optional netmask for IPv6



80
81
82
# File 'lib/r509/cert/extensions/base.rb', line 80

def ip_addresses
  @general_names.ip_addresses
end

- (Array) names

Array of GeneralName objects preserving order found in the extension

Returns:

  • (Array)

    array of GeneralName objects preserving order found in the extension



103
104
105
# File 'lib/r509/cert/extensions/base.rb', line 103

def names
  @general_names.names
end

- (Array<String>) rfc_822_names Also known as: email_names

Email addresses

Returns:

  • (Array<String>)

    email addresses



86
87
88
# File 'lib/r509/cert/extensions/base.rb', line 86

def rfc_822_names
  @general_names.rfc_822_names
end

- (Array<String>) uris

URIs (not typically found in SAN extensions)

Returns:

  • (Array<String>)

    URIs (not typically found in SAN extensions)



92
93
94
# File 'lib/r509/cert/extensions/base.rb', line 92

def uris
  @general_names.uris
end