Home
last modified time | relevance | path

Searched refs:ipAddress (Results 1 – 7 of 7) sorted by relevance

/libcore/luni/src/main/java/java/net/
DInetAddress.java779 public static InetAddress getByAddress(byte[] ipAddress) throws UnknownHostException { in getByAddress() argument
780 return getByAddress(null, ipAddress, 0); in getByAddress()
799 …public static InetAddress getByAddress(String hostName, byte[] ipAddress) throws UnknownHostExcept… in getByAddress() argument
800 return getByAddress(hostName, ipAddress, 0); in getByAddress()
803 …private static InetAddress getByAddress(String hostName, byte[] ipAddress, int scopeId) throws Unk… in getByAddress() argument
804 if (ipAddress == null) { in getByAddress()
807 if (ipAddress.length == 4) { in getByAddress()
808 return new Inet4Address(ipAddress.clone(), hostName); in getByAddress()
809 } else if (ipAddress.length == 16) { in getByAddress()
813 if (isIPv4MappedAddress(ipAddress)) { in getByAddress()
[all …]
/libcore/luni/src/test/java/libcore/java/security/cert/
DSubjectAlternativeNameTest.java47 byte[] ipAddress = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; in testFormatIpv6Address()
48 String decoded = formatIpAddress(ipAddress); in testFormatIpv6Address()
52 private String formatIpAddress(byte[] ipAddress) throws Exception { in formatIpAddress() argument
54 .addSubjectAltNameIpAddress(ipAddress) in formatIpAddress()
DX509CertSelectorTest.java116 private X509Certificate newCertWithSubjectAltNameIpAddress(byte[] ipAddress) throws Exception { in newCertWithSubjectAltNameIpAddress() argument
118 .addSubjectAltNameIpAddress(ipAddress) in newCertWithSubjectAltNameIpAddress()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInetAddressTest.java271 byte ipAddress[] = { 127, 0, 0, 1 }; in test_getByAddressLjava_lang_String$B()
274 InetAddress addr = InetAddress.getByAddress(addressStr, ipAddress); in test_getByAddressLjava_lang_String$B()
275 addr = InetAddress.getByAddress(ipAddress); in test_getByAddressLjava_lang_String$B()
278 + ipAddress.length); in test_getByAddressLjava_lang_String$B()
286 addr = InetAddress.getByAddress(ipAddress); in test_getByAddressLjava_lang_String$B()
289 + ipAddress.length); in test_getByAddressLjava_lang_String$B()
DInet6AddressTest.java776 byte[] ipAddress = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; in test_getHostAddress_()
777 InetAddress ia = InetAddress.getByAddress(ipAddress); in test_getHostAddress_()
780 ipAddress = new byte[] { -2, -128, 0, 0, 0, 0, 0, 0, 2, 17, 37, -1, -2, -8, 124, -79 }; in test_getHostAddress_()
781 ia = InetAddress.getByAddress(ipAddress); in test_getHostAddress_()
/libcore/luni/src/main/java/javax/net/ssl/
DDefaultHostnameVerifier.java59 private boolean verifyIpAddress(String ipAddress, X509Certificate certificate) { in verifyIpAddress() argument
61 if (ipAddress.equalsIgnoreCase(altName)) { in verifyIpAddress()
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java348 public Builder addSubjectAltNameIpAddress(byte[] ipAddress) { in addSubjectAltNameIpAddress() argument
350 new GeneralName(GeneralName.iPAddress, new DEROctetString(ipAddress))); in addSubjectAltNameIpAddress()
362 public Builder addNameConstraint(boolean permitted, byte[] ipAddress) { in addNameConstraint() argument
364 new GeneralName(GeneralName.iPAddress, new DEROctetString(ipAddress))); in addNameConstraint()