Home
last modified time | relevance | path

Searched refs:AddressUtils (Results 1 – 11 of 11) sorted by relevance

/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DAddressUtilsTest.java26 assertTrue(AddressUtils.isValidSniHostname("www.google.com")); in test_isValidSniHostname_Success()
30 assertFalse(AddressUtils.isValidSniHostname("www")); in test_isValidSniHostname_NotFQDN_Failure()
34 assertTrue(AddressUtils.isValidSniHostname("LOCALhost")); in test_isValidSniHostname_Localhost_Success()
38 assertFalse(AddressUtils.isValidSniHostname("192.168.0.1")); in test_isValidSniHostname_IPv4_Failure()
42 assertFalse(AddressUtils.isValidSniHostname("2001:db8::1")); in test_isValidSniHostname_IPv6_Failure()
46 assertFalse(AddressUtils.isValidSniHostname("www.google.com.")); in test_isValidSniHostname_TrailingDot()
50 assertFalse(AddressUtils.isValidSniHostname("www\0.google.com")); in test_isValidSniHostname_NullByte()
54 assertTrue(AddressUtils.isLiteralIpAddress("127.0.0.1")); in test_isLiteralIpAddress_IPv4_Success()
55 assertTrue(AddressUtils.isLiteralIpAddress("255.255.255.255")); in test_isLiteralIpAddress_IPv4_Success()
56 assertTrue(AddressUtils.isLiteralIpAddress("0.0.00.000")); in test_isLiteralIpAddress_IPv4_Success()
[all …]
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DAddressUtilsTest.java28 assertTrue(AddressUtils.isValidSniHostname("www.google.com")); in test_isValidSniHostname_Success()
32 assertFalse(AddressUtils.isValidSniHostname("www")); in test_isValidSniHostname_NotFQDN_Failure()
36 assertTrue(AddressUtils.isValidSniHostname("LOCALhost")); in test_isValidSniHostname_Localhost_Success()
40 assertFalse(AddressUtils.isValidSniHostname("192.168.0.1")); in test_isValidSniHostname_IPv4_Failure()
44 assertFalse(AddressUtils.isValidSniHostname("2001:db8::1")); in test_isValidSniHostname_IPv6_Failure()
48 assertFalse(AddressUtils.isValidSniHostname("www.google.com.")); in test_isValidSniHostname_TrailingDot()
52 assertFalse(AddressUtils.isValidSniHostname("www\0.google.com")); in test_isValidSniHostname_NullByte()
56 assertTrue(AddressUtils.isLiteralIpAddress("127.0.0.1")); in test_isLiteralIpAddress_IPv4_Success()
57 assertTrue(AddressUtils.isLiteralIpAddress("255.255.255.255")); in test_isLiteralIpAddress_IPv4_Success()
58 assertTrue(AddressUtils.isLiteralIpAddress("0.0.00.000")); in test_isLiteralIpAddress_IPv4_Success()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DAddressUtils.java24 final class AddressUtils { class
33 private AddressUtils() {} in AddressUtils() method in AddressUtils
56 Pattern ipPattern = AddressUtils.ipPattern; in isLiteralIpAddress()
58 AddressUtils.ipPattern = ipPattern = Pattern.compile(IP_PATTERN); in isLiteralIpAddress()
DNativeSsl.java349 if (parameters.getUseSni() && AddressUtils.isValidSniHostname(hostname)) { in initialize()
379 if (!AddressUtils.isValidSniHostname(serverName)) { in verifyWithSniMatchers()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DAddressUtils.java25 final class AddressUtils { class
35 private AddressUtils() {} in AddressUtils() method in AddressUtils
56 Pattern ipPattern = AddressUtils.ipPattern; in isLiteralIpAddress()
58 AddressUtils.ipPattern = ipPattern = Pattern.compile(IP_PATTERN); in isLiteralIpAddress()
DNativeSsl.java350 if (parameters.getUseSni() && AddressUtils.isValidSniHostname(hostname)) { in initialize()
380 if (!AddressUtils.isValidSniHostname(serverName)) { in verifyWithSniMatchers()
/external/conscrypt/repackaged/openjdk/src/main/java/com/android/org/conscrypt/
DJava8PlatformUtil.java59 if (impl.getUseSni() && AddressUtils.isValidSniHostname(socket.getHostname())) { in getSSLParameters()
68 if (impl.getUseSni() && AddressUtils.isValidSniHostname(engine.getHostname())) { in getSSLParameters()
/external/conscrypt/openjdk/src/main/java/org/conscrypt/
DJava8PlatformUtil.java58 if (impl.getUseSni() && AddressUtils.isValidSniHostname(socket.getHostname())) { in getSSLParameters()
67 if (impl.getUseSni() && AddressUtils.isValidSniHostname(engine.getHostname())) { in getSSLParameters()
/external/conscrypt/platform/src/main/java/org/conscrypt/
DPlatform.java157 if (impl.getUseSni() && AddressUtils.isValidSniHostname(socket.getHostname())) { in getSSLParameters()
184 if (impl.getUseSni() && AddressUtils.isValidSniHostname(engine.getHostname())) { in getSSLParameters()
/external/conscrypt/repackaged/platform/src/main/java/com/android/org/conscrypt/
DPlatform.java158 if (impl.getUseSni() && AddressUtils.isValidSniHostname(socket.getHostname())) { in getSSLParameters()
185 if (impl.getUseSni() && AddressUtils.isValidSniHostname(engine.getHostname())) { in getSSLParameters()
/external/conscrypt/android/src/main/java/org/conscrypt/
DPlatform.java331 if (impl.getUseSni() && AddressUtils.isValidSniHostname(socket.getHostname())) { in setParametersSniHostname()
360 if (impl.getUseSni() && AddressUtils.isValidSniHostname(engine.getHostname())) { in setParametersSniHostname()