Searched refs:hostName (Results 1 - 9 of 9) 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)) {
86 return verifyHostName(hostName, cn);
123 * Returns true if {@code hostName} matches the name or pattern {@code cn}.
125 * @param hostName lowercase host name.
129 public boolean verifyHostName(String hostName, String cn) { argument
130 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,
766 getByAddress(String hostName, byte[] ipAddress) argument
770 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.java183 * specified by the parameters {@code hostName} and {@code port}. The socket
190 * @param hostName
206 public Socket(String hostName, int port, boolean streaming) throws IOException { argument
208 tryAllAddresses(hostName, port, null, 0, streaming);
/libcore/crypto/src/main/java/org/conscrypt/
H A DCertPinManager.java176 * Returns true if {@code hostName} matches the name or pattern {@code cn}.
178 * @param hostName lowercase host name.
182 private static boolean isHostnameMatchedBy(String hostName, String cn) { argument
183 if (hostName == null || hostName.isEmpty() || cn == null || cn.isEmpty()) {
190 return hostName.equals(cn);
193 if (cn.startsWith("*.") && hostName.regionMatches(0, cn, 2, cn.length() - 2)) {
204 if (!hostName.regionMatches(0, cn, 0, asterisk)) {
209 int suffixStart = hostName.length() - suffixLength;
210 if (hostName
[all...]
H A DOpenSSLSocketImpl.java199 String hostName = getPeerHostName();
201 if (hostName == null) {
204 OpenSSLSessionImpl session = (OpenSSLSessionImpl) sessionContext.getSession(hostName, port);
/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/test/java/libcore/java/net/
H A DURLConnectionTest.java86 private String hostName; field in class:URLConnectionTest
91 hostName = server.getHostName();
1582 assertContains(first.getHeaders(), "Host: " + hostName + ":" + server.getPort());
1584 assertContains(second.getHeaders(), "Host: " + hostName + ":" + server2.getPort());
1674 assertEquals(Arrays.asList("verify " + hostName), hostnameVerifier.calls);
1676 + "CN=" + hostName + " 1, "
1695 String hostName = ss.getLocalSocketAddress().getAddress().getHostAddress();
1696 URLConnection urlConnection = new URL("http://" + hostName + ":" + serverPort + "/")

Completed in 323 milliseconds