Package org.conscrypt

Class AddressUtils


  • public final class AddressUtils
    extends Object
    Utilities to check whether IP addresses meet some criteria.
    • 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.