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

#directory_namesArray<R509::Subject> Also known as: dir_names

Returns directory names

Returns:



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

def directory_names
  @general_names.directory_names
end

#dns_namesArray<String>

Returns DNS names

Returns:

  • (Array<String>)

    DNS names



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

def dns_names
  @general_names.dns_names
end

#ip_addressesArray<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

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



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

def ip_addresses
  @general_names.ip_addresses
end

#namesArray

Returns array of GeneralName objects preserving order found in the extension

Returns:

  • (Array)

    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_namesArray<String> Also known as: email_names

Returns email addresses

Returns:

  • (Array<String>)

    email addresses



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

def rfc_822_names
  @general_names.rfc_822_names
end

#urisArray<String>

Returns URIs (not typically found in SAN extensions)

Returns:

  • (Array<String>)

    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