Package org.conscrypt
Class AddressUtils
java.lang.Object
org.conscrypt.AddressUtils
Utilities to check whether IP addresses meet some criteria.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static boolean
isLiteralIpAddress
(String hostname) Returns true if the supplied hostname is an literal IP address.(package private) static boolean
isValidSniHostname
(String sniHostname) Returns true when the supplied hostname is valid for SNI purposes.
-
Field Details
-
IP_PATTERN
- See Also:
-
ipPattern
-
-
Constructor Details
-
AddressUtils
private AddressUtils()
-
-
Method Details
-
isValidSniHostname
Returns true when the supplied hostname is valid for SNI purposes. -
isLiteralIpAddress
Returns true if the supplied hostname is an literal IP address.
-