Package org.conscrypt
Class AddressUtils
- java.lang.Object
-
- org.conscrypt.AddressUtils
-
public final class AddressUtils extends Object
Utilities to check whether IP addresses meet some criteria.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisLiteralIpAddress(String hostname)Returns true if the supplied hostname is an literal IP address.static booleanisValidSniHostname(String sniHostname)Returns true when the supplied hostname is valid for SNI purposes.
-
-
-
Method Detail
-
isValidSniHostname
public static boolean isValidSniHostname(String sniHostname)
Returns true when the supplied hostname is valid for SNI purposes.
-
isLiteralIpAddress
public static boolean isLiteralIpAddress(String hostname)
Returns true if the supplied hostname is an literal IP address.
-
-