Top Description Fields Constructors Methods
org.conscrypt

pack-priv final Class AddressUtils

extends Object
Class Inheritance
Imports
java.util.regex.Pattern

Utilities to check whether IP addresses meet some criteria.

Field Summary

Modifier and TypeField and Description
private static final String
private static Pattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static boolean
isLiteralIpAddress(String hostname)

Returns true if the supplied hostname is an literal IP address.

pack-priv static boolean
isValidSniHostname(String sniHostname)

Returns true when the supplied hostname is valid for SNI purposes.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

IP_PATTERNback to summary
private static final String IP_PATTERN
ipPatternback to summary
private static Pattern ipPattern

Constructor Detail

AddressUtilsback to summary
private AddressUtils()

Method Detail

isLiteralIpAddressback to summary
pack-priv static boolean isLiteralIpAddress(String hostname)

Returns true if the supplied hostname is an literal IP address.

isValidSniHostnameback to summary
pack-priv static boolean isValidSniHostname(String sniHostname)

Returns true when the supplied hostname is valid for SNI purposes.