Package org.conscrypt

Class AddressUtils

java.lang.Object
org.conscrypt.AddressUtils

final class AddressUtils extends Object
Utilities to check whether IP addresses meet some criteria.
  • Field Details

  • Constructor Details

    • AddressUtils

      private AddressUtils()
  • Method Details

    • isValidSniHostname

      static boolean isValidSniHostname(String sniHostname)
      Returns true when the supplied hostname is valid for SNI purposes.
    • isLiteralIpAddress

      static boolean isLiteralIpAddress(String hostname)
      Returns true if the supplied hostname is an literal IP address.