module R509::Cert::Extensions::GeneralNamesMixin

Mixed into extensions that have a single generalnames object to simplify getting data out of them

Public Instance Methods

dir_names()
Alias for: directory_names
directory_names() click to toggle source

@return [Array<R509::Subject>] directory names

# File lib/r509/cert/extensions/base.rb, line 96
def directory_names
  @general_names.directory_names
end
Also aliased as: dir_names
dns_names() click to toggle source

@return [Array<String>] DNS names

# File lib/r509/cert/extensions/base.rb, line 74
def dns_names
  @general_names.dns_names
end
email_names()
Alias for: rfc_822_names
ip_addresses() click to toggle source

@return [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

# File lib/r509/cert/extensions/base.rb, line 79
def ip_addresses
  @general_names.ip_addresses
end
Also aliased as: ips
ips()
Alias for: ip_addresses
names() click to toggle source

@return [Array] array of GeneralName objects preserving order found in the extension

# File lib/r509/cert/extensions/base.rb, line 102
def names
  @general_names.names
end
rfc_822_names() click to toggle source

@return [Array<String>] email addresses

# File lib/r509/cert/extensions/base.rb, line 85
def rfc_822_names
  @general_names.rfc_822_names
end
Also aliased as: email_names
uris() click to toggle source

@return [Array<String>] URIs (not typically found in SAN extensions)

# File lib/r509/cert/extensions/base.rb, line 91
def uris
  @general_names.uris
end