Searched refs:hostname (Results 1 - 9 of 9) sorted by relevance

/dalvik/libcore/x-net/src/main/java/javax/net/ssl/
H A DHostnameVerifier.java21 * The interface to be used to provide hostname verification functionality.
24 * during a handshake if the URL's hostname does not match the peer's
25 * identification hostname.
29 * Verifies that the specified hostname is allowed within the specified SSL
32 * @param hostname
33 * the hostname.
36 * @return {@code true} if the specified hostname is allowed, otherwise
39 boolean verify(String hostname, SSLSession session); argument
/dalvik/libcore/luni/src/main/java/java/net/
H A DInetSocketAddress.java31 private String hostname; field in class:InetSocketAddress
69 hostname = addr.getHostName();
75 * hostname {@code host}. The hostname is tried to be resolved and cannot be
82 * the specified hostname to which this socket is bound.
100 hostname = host;
110 addr = InetAddress.getByName(hostname);
111 hostname = null;
122 * hostname into an {@code InetAddress}. The address field is marked as
126 * the specified hostname t
[all...]
H A DAddressCache.java81 * Returns the cached addresses associated with 'hostname'. Returns null if nothing is known
82 * about 'hostname'. Returns an empty array if 'hostname' is known not to exist.
84 public InetAddress[] get(String hostname) { argument
87 entry = map.get(hostname);
99 * Associates the given 'addresses' with 'hostname'. The association will expire after a
102 public void put(String hostname, InetAddress[] addresses) { argument
118 map.put(hostname, new AddressCacheEntry(addresses, expiryNanos));
123 * Records that 'hostname' is known not to have any associated addresses. (I.e. insert a
126 public void putUnknownHost(String hostname) { argument
[all...]
H A DSocket.java146 * Tries to connect a socket to all IP addresses of the given hostname.
203 * IP address for the given hostname until it either connects successfully
234 * IP address for the given hostname until it either connects successfully
267 * IP address for the given hostname until it either connects successfully
408 * @param hostname
409 * the destination hostname.
413 private void checkConnectPermission(String hostname, int dstPort) { argument
416 security.checkConnect(hostname, dstPort);
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/
H A DINetworkSystem.java87 int trafficClass, InetAddress hostname, int port, int step,
86 connectWithTimeout(FileDescriptor aFD, int timeout, int trafficClass, InetAddress hostname, int port, int step, byte[] context) argument
H A DOSNetworkSystem.java148 int timeout, int trafficClass, InetAddress hostname, int port, int step,
147 connectWithTimeoutSocketImpl(FileDescriptor aFD, int timeout, int trafficClass, InetAddress hostname, int port, int step, byte[] context) argument
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/
H A DHttpsURLConnectionTest.java151 assertNotNull("Default hostname verifyer is null", verifyer);
185 assertEquals("Incorrect value of hostname verirfyer",
492 public boolean verify(String hostname, SSLSession session) { argument
493 if (hostname == session.getPeerHost()) {
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
H A DHttpsURLConnectionTest.java162 // create the HostnameVerifier to check hostname verification
217 // create the HostnameVerifier to check hostname verification
266 // create the HostnameVerifier to check hostname verification
315 // create the HostnameVerifier to check hostname verification
1059 public boolean verify(String hostname, SSLSession session) { argument
1061 System.out.println("***> verification " + hostname + " "
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
H A DSecurityManagerTest.java562 boolean createSocketAddress(String hostname, int port) { argument
565 new InetSocketAddress(hostname, port);

Completed in 159 milliseconds