Searched refs:hostName (Results 1 - 8 of 8) sorted by relevance

/libcore/luni/src/main/java/javax/net/ssl/
H A DDefaultHostnameVerifier.java69 * Returns true if {@code certificate} matches {@code hostName}.
71 private boolean verifyHostName(String hostName, X509Certificate certificate) { argument
72 hostName = hostName.toLowerCase(Locale.US);
76 if (verifyHostName(hostName, altName)) {
85 return verifyHostName(hostName, cn);
122 * Returns true if {@code hostName} matches the name or pattern {@code cn}.
124 * @param hostName lowercase host name.
128 public boolean verifyHostName(String hostName, String cn) { argument
129 if (hostName
[all...]
/libcore/luni/src/main/java/java/net/
H A DInetAddress.java136 String hostName; field in class:InetAddress
149 InetAddress(int family, byte[] ipaddress, String hostName) { argument
152 this.hostName = hostName;
188 * @param hostName the hostname corresponding to the IP address.
191 private static InetAddress[] bytesToInetAddresses(byte[][] rawAddresses, String hostName) argument
196 returnedAddresses[i] = makeInetAddress(rawAddresses[i], hostName);
239 private static InetAddress makeInetAddress(byte[] bytes, String hostName) throws UnknownHostException { argument
241 return new Inet4Address(bytes, hostName);
243 return new Inet6Address(bytes, hostName,
767 getByAddress(String hostName, byte[] ipAddress) argument
771 getByAddress(String hostName, byte[] ipAddress, int scopeId) argument
[all...]
H A DInet4Address.java51 Inet4Address(byte[] ipaddress, String hostName) { argument
52 super(AF_INET, ipaddress, hostName);
129 return new Inet4Address(ipaddress, hostName);
H A DInet6Address.java65 Inet6Address(byte[] ipaddress, String hostName, int scope_id) { argument
66 super(AF_INET6, ipaddress, hostName);
H A DSocket.java182 * specified by the parameters {@code hostName} and {@code port}. The socket
189 * @param hostName
205 public Socket(String hostName, int port, boolean streaming) throws IOException { argument
207 tryAllAddresses(hostName, port, null, 0, streaming);
/libcore/luni/src/main/java/libcore/net/url/
H A DFtpURLConnection.java93 private String hostName; field in class:FtpURLConnection
108 hostName = url.getHost();
219 InetSocketAddress addr = new InetSocketAddress(hostName, port);
321 return new SocketPermission(hostName + ":" + port, "connect, resolve");
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DOpenSSLSocketImpl.java193 String hostName = getPeerHostName();
195 if (hostName == null) {
198 OpenSSLSessionImpl session = (OpenSSLSessionImpl) sessionContext.getSession(hostName, port);
/libcore/luni/src/test/java/libcore/java/net/
H A DURLConnectionTest.java90 private String hostName; field in class:URLConnectionTest
94 hostName = server.getHostName();
1537 assertContains(first.getHeaders(), "Host: " + hostName + ":" + server.getPort());
1539 assertContains(second.getHeaders(), "Host: " + hostName + ":" + server2.getPort());
1629 assertEquals(Arrays.asList("verify " + hostName), hostnameVerifier.calls);
1631 + "CN=" + hostName + " 1, "

Completed in 190 milliseconds