Searched refs:host (Results 1 - 25 of 70) sorted by relevance

123

/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DClientSessionContext.java24 * Caches client sessions. Indexes by host and port. Users are typically
25 * looking to reuse any session for a given host and port.
30 * Sessions indexed by host and port. Protect from concurrent
51 String host = session.getPeerHost();
53 if (host == null) {
56 HostAndPort hostAndPortKey = new HostAndPort(host, port);
63 * Finds a cached session for the given host name and port.
65 * @param host of server
69 public SSLSession getSession(String host, int port) { argument
70 if (host
125 final String host; field in class:ClientSessionContext.HostAndPort
128 HostAndPort(String host, int port) argument
[all...]
H A DSSLClientSessionCache.java35 * Gets data from a pre-existing session for a given server host and port.
37 * @param host from {@link javax.net.ssl.SSLSession#getPeerHost()}
40 * @throws NullPointerException if host is null
42 public byte[] getSessionData(String host, int port); argument
H A DOpenSSLSocketFactoryImpl.java63 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument
64 return new OpenSSLSocketImpl(host, port, (SSLParametersImpl) sslParameters.clone());
67 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument
69 return new OpenSSLSocketImpl(host,
76 public Socket createSocket(InetAddress host, int port) throws IOException { argument
77 return new OpenSSLSocketImpl(host, port, (SSLParametersImpl) sslParameters.clone());
92 public Socket createSocket(Socket s, String host, int port, boolean autoClose) argument
95 host,
H A DSSLSocketFactoryImpl.java86 public Socket createSocket(Socket s, String host, int port, argument
91 return new SSLSocketWrapper(s, host, port, autoClose, (SSLParametersImpl) sslParameters
112 public Socket createSocket(String host, int port) argument
117 return new SSLSocketImpl(host, port,
125 public Socket createSocket(String host, int port, argument
131 return new SSLSocketImpl(host, port, localHost, localPort,
139 public Socket createSocket(InetAddress host, int port) argument
144 return new SSLSocketImpl(host, port,
H A DFileClientSessionCache.java46 * This cache creates one file per SSL session using "host.port" for
120 * Gets the file name for the given host and port.
122 private static String fileName(String host, int port) { argument
123 if (host == null) {
124 throw new NullPointerException("host == null");
126 return host + "." + port;
129 public synchronized byte[] getSessionData(String host, int port) { argument
136 String name = fileName(host, port);
161 logReadError(host, file, e);
170 logReadError(host, fil
177 logReadError(String host, File file, Throwable t) argument
296 logWriteError(String host, File file, Throwable t) argument
[all...]
/libcore/luni/src/main/java/javax/net/
H A DDefaultSocketFactory.java39 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument
40 return new Socket(host, port);
44 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument
46 return new Socket(host, port, localHost, localPort);
50 public Socket createSocket(InetAddress host, int port) throws IOException { argument
51 return new Socket(host, port);
H A DSocketFactory.java54 * Creates a new socket which is not connected to any remote host. This
68 * Creates a new socket which is connected to the remote host specified by
69 * the parameters {@code host} and {@code port}. The socket is bound to any
72 * @param host
73 * the remote host address the socket has to be connected to.
75 * the port number of the remote host at which the socket is
81 * if the specified host is unknown or the IP address could not
84 public abstract Socket createSocket(String host, int port) throws IOException, argument
88 * Creates a new socket which is connected to the remote host specified by
89 * the parameters {@code host} an
110 createSocket(String host, int port, InetAddress localHost, int localPort) argument
127 createSocket(InetAddress host, int port) argument
[all...]
/libcore/luni/src/main/java/java/util/logging/
H A DSocketHandler.java43 * <li>java.util.logging.SocketHandler.host specifies the name of the host that
67 * the log manager, including the host name and port number. Default
71 * if failed to connect to the specified host and port.
73 * if the host name or port number is illegal.
78 "java.util.logging.SocketHandler.host"), LogManager
84 * Constructs a {@code SocketHandler} object using the specified host name
88 * @param host
89 * the host name
93 * if failed to connect to the specified host an
97 SocketHandler(String host, int port) argument
103 initSocket(String host, String port) argument
[all...]
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DFakeSSLSession.java25 final String host; field in class:FakeSSLSession
27 public FakeSSLSession(String host) { argument
28 this.host = host;
44 return host.getBytes();
72 return host;
H A DTestSSLContext.java91 public final InetAddress host; field in class:TestSSLContext
105 InetAddress host,
118 this.host = host;
133 * listening provided host and port.
178 InetAddress host = InetAddress.getLocalHost();
188 serverSocket, host, port);
276 public Socket createSocket(String host, int port)
278 return set(sf.createSocket(host, port));
280 public Socket createSocket(String host, in
94 TestSSLContext(KeyStore clientKeyStore, char[] clientStorePassword, KeyStore serverKeyStore, char[] serverStorePassword, X509ExtendedKeyManager clientKeyManager, X509ExtendedKeyManager serverKeyManager, X509TrustManager clientTrustManager, X509TrustManager serverTrustManager, SSLContext clientContext, SSLContext serverContext, SSLServerSocket serverSocket, InetAddress host, int port) argument
[all...]
/libcore/luni/src/main/java/java/net/
H A DURL.java43 * {@code http://username:password@host:8080/directory/file?query#ref}:
47 * <tr><td>{@link #getAuthority() Authority}</td><td>{@code username:password@host:8080}</td><td></td></tr>
49 * <tr><td>{@link #getHost() Host}</td><td>{@code host}</td><td></td></tr>
88 private String host; field in class:URL
203 public URL(String protocol, String host, String file) throws MalformedURLException { argument
204 this(protocol, host, -1, file, null);
211 * @param host the host name or IP address of the new URL.
217 public URL(String protocol, String host, int port, String file) throws MalformedURLException { argument
218 this(protocol, host, por
233 URL(String protocol, String host, int port, String file, URLStreamHandler handler) argument
307 set(String protocol, String host, int port, String file, String ref) argument
655 set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
[all...]
H A DSocketPermission.java27 public SocketPermission(String host, String action) { super(""); } argument
H A DProxySelectorImpl.java95 String host = System.getProperty(hostKey);
96 if (host == null || host.isEmpty()) {
101 return new Proxy(type, InetSocketAddress.createUnresolved(host, port));
117 * and matches {@code host}.
119 private boolean isNonProxyHost(String host, String nonProxyHosts) { argument
120 if (host == null || nonProxyHosts == null) {
139 // check whether the host is the nonProxyHosts.
141 return host.matches(pattern);
H A DURLStreamHandler.java96 String host;
117 * Extract the host and port. The host may be an IPv6 address with
131 host = spec.substring(hostStart, hostEnd);
147 host = url.getHost();
148 if (host == null) {
149 host = "";
192 setURL(url, url.getProtocol(), host, port, authority, userInfo, path, query, ref);
217 * @param host
218 * the host nam
229 setURL(URL u, String protocol, String host, int port, String file, String ref) argument
241 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
[all...]
H A DURI.java37 * {@code http://username:password@host:8080/directory/file?query#fragment}
41 * <tr><td>{@link #getSchemeSpecificPart() Scheme-specific part}</td><td>{@code //username:password@host:8080/directory/file?query#fragment}</td><td></td></tr>
42 * <tr><td>{@link #getAuthority() Authority} </td><td>{@code username:password@host:8080} </td><td></td></tr>
44 * <tr><td>{@link #getHost() Host} </td><td>{@code host} </td><td></td></tr>
88 * has an authority, user info, host, port, path or query. An opaque URIs may
107 * {@code http://user:pa55w%3Frd@host:80/doc%7Csearch?q=green%20robots#over%206%22}
111 * <tr><td>Scheme-specific part</td><td>{@code 0-9}, {@code a-z}, {@code A-Z}, {@code _-!.~'()*,;:$&+=?/[]@}</td><td>Non-ASCII characters okay </td><td>{@code //user:pa55w%3Frd@host:80/doc%7Csearch?q=green%20robots}</td><td>{@code //user:pa55w?rd@host:80/doc|search?q=green robots}</td></tr>
112 * <tr><td>Authority </td><td>{@code 0-9}, {@code a-z}, {@code A-Z}, {@code _-!.~'()*,;:$&+=@[]} </td><td>Non-ASCII characters okay </td><td>{@code user:pa55w%3Frd@host:80} </td><td>{@code user:pa55w?rd@host
185 private transient String host; field in class:URI
235 URI(String scheme, String userInfo, String host, int port, String path, String query, String fragment) argument
297 URI(String scheme, String host, String path, String fragment) argument
520 isValidHost(boolean forceServer, String host) argument
569 isValidDomainName(String host) argument
[all...]
H A DInetSocketAddress.java80 * hostname {@code host}. The hostname is tried to be resolved and cannot be
86 * @param host
89 public InetSocketAddress(String host, int port) { argument
90 this(host, port, true);
99 throw new IllegalArgumentException("host=" + hostname + ", port=" + port);
120 * @param host
126 * if the hostname {@code host} is {@code null} or the port is
129 public static InetSocketAddress createUnresolved(String host, int port) { argument
130 return new InetSocketAddress(host, port, false);
H A DInetAddress.java184 * Converts an array of byte arrays representing raw IP addresses of a host
202 * Gets all IP addresses associated with the given {@code host} identified
204 * configured name service. If the host name is empty or {@code null} an
205 * {@code UnknownHostException} is thrown. If the host name is a literal IP
209 * @param host the hostname or literal IP string to be resolved.
210 * @return the array of addresses associated with the specified host.
213 public static InetAddress[] getAllByName(String host) throws UnknownHostException { argument
214 return getAllByNameImpl(host).clone();
218 * Returns the InetAddresses for {@code host}. The returned array is shared
221 private static InetAddress[] getAllByNameImpl(String host) throw argument
288 getByName(String host) argument
384 lookupHostByName(String host) argument
[all...]
/libcore/luni/src/main/java/libcore/net/url/
H A DFileHandler.java69 String host = url.getHost();
70 if (host == null || host.isEmpty() || host.equalsIgnoreCase("localhost")) {
75 URL ftpURL = new URL("ftp", host, url.getFile());
/libcore/luni/src/main/java/javax/net/ssl/
H A DDefaultSSLSocketFactory.java50 public Socket createSocket(Socket s, String host, int port, boolean autoClose) argument
56 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument
61 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument
67 public Socket createSocket(InetAddress host, int port) throws IOException { argument
H A DSSLSocket.java42 * Creates a TCP socket connection to the specified host at the specified
45 * @param host
46 * the host name to connect to.
52 * if the specified host is not known.
54 protected SSLSocket(String host, int port) throws IOException, UnknownHostException { argument
55 super(host, port);
78 * Creates a TCP socket connection to the specified host at the specified
81 * @param host
82 * the host name to connect to.
92 * if the specified host i
94 SSLSocket(String host, int port, InetAddress clientAddress, int clientPort) argument
[all...]
H A DDefaultHostnameVerifier.java41 public final boolean verify(String host, SSLSession session) { argument
44 return verify(host, (X509Certificate) certificates[0]);
50 public boolean verify(String host, X509Certificate certificate) { argument
51 return InetAddress.isNumeric(host)
52 ? verifyIpAddress(host, certificate)
53 : verifyHostName(host, certificate);
124 * @param hostName lowercase host name.
125 * @param cn certificate host name. May include wildcards like
/libcore/luni/src/test/java/libcore/java/net/
H A DOldAndroidURITest.java30 private static void construct(String str, String host, String path, boolean absolute) argument
33 assertEquals(host, uri.getHost());
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
H A DSSLEngineTest.java58 * SSLEngine object with null host and -1 port
71 * Test for <code>SSLEngine(String host, int port)</code> constructor
103 * Test for <code>SSLEngine(String host, int port)</code> constructor
107 String host = "new host";
109 SSLEngine e = getEngine(host, port);
110 assertEquals(e.getPeerHost(), host);
127 assertEquals("Incorrect host name", "www.fortify.net", e.getPeerHost());
288 sse = getEngine("new host", 1080);
409 String host
1281 getEngine(String host, int port) argument
[all...]
/libcore/
H A DAndroid.mk52 # "m dalvik-host" for quick minimal host build
56 .PHONY: dalvik-host
57 dalvik-host: \
62 cacerts-host \
/libcore/luni/src/main/java/java/lang/
H A DSecurityManager.java40 public void checkAccept(String host, int port) { } argument
46 public void checkConnect(String host, int port) { } argument
48 public void checkConnect(String host, int port, Object context) { } argument

Completed in 812 milliseconds

123