Searched defs:host (Results 26 - 50 of 55) sorted by relevance

123

/libcore/luni/src/main/java/javax/net/ssl/
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 DSSLEngine.java42 * Creates a new {@code SSLEngine} instance with the specified host and
45 * @param host
46 * the name of the host.
48 * the port of the host.
50 protected SSLEngine(String host, int port) { argument
51 this.peerHost = host;
56 * Returns the name of the peer host.
58 * @return the name of the peer host, or {@code null} if none is available.
65 * Returns the port number of the peer host.
67 * @return the port number of the peer host, o
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DAbstractSessionContext.java158 * to update its host-and-port based cache.
226 SSLSession toSession(byte[] data, String host, int port) { argument
249 return new OpenSSLSessionImpl(sessionData, host, port, certs, this);
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...]
H A DTrustManagerImpl.java56 * The CertPinManager, which validates the chain against a host-to-pin mapping
192 * chain is pinned appropriately for that host. If null, it does not check for pinned certs.
196 String host) throws CertificateException {
197 return checkTrusted(chain, authType, host);
208 private List<X509Certificate> checkTrusted(X509Certificate[] chain, String authType, String host) argument
257 if (host != null) {
260 chainIsNotPinned = pinManager.chainIsNotPinned(host, wholeChain);
195 checkServerTrusted(X509Certificate[] chain, String authType, String host) argument
H A DOpenSSLSocketImplWrapper.java33 protected OpenSSLSocketImplWrapper(Socket socket, String host, int port, argument
35 super(socket, host, port, autoClose, sslParameters);
H A DSSLSocketWrapper.java35 protected SSLSocketWrapper(Socket socket, String host, int port, boolean autoClose, argument
37 super(host, port, sslParameters);
H A DSSLEngineImpl.java87 protected SSLEngineImpl(String host, int port, SSLParametersImpl sslParameters) { argument
88 super(host, port);
H A DSSLSocketImpl.java97 * @param host: String
105 protected SSLSocketImpl(String host, int port, SSLParametersImpl sslParameters) argument
107 super(host, port);
108 this.wrappedHost = host;
116 * @param host: String
126 protected SSLSocketImpl(String host, int port, argument
130 super(host, port, localHost, localPort);
131 this.wrappedHost = host;
139 * @param host: InetAddress
147 protected SSLSocketImpl(InetAddress host, in argument
[all...]
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DDOMTestCase.java103 String host, String file, String name, String query,
154 if (host != null) {
160 assertEquals(assertID, host, actualHost);
102 assertURIEquals(String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) argument
/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/dom/src/test/java/org/w3c/domts/
H A DDOMTestCase.java652 * @param host
653 * Expected host, for example, "www.w3.org". If null, host is
674 String host,
730 if (host != null) {
736 assertEquals(assertID, host, actualHost);
670 assertURIEquals( String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) argument
/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
/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 DHttpCookie.java81 * Returns true if {@code host} matches the domain pattern {@code domain}.
83 * @param domainPattern a host name (like {@code android.com} or {@code
87 * @param host the host name or IP address from an HTTP request.
89 public static boolean domainMatches(String domainPattern, String host) { argument
90 if (domainPattern == null || host == null) {
94 String a = host.toLowerCase(Locale.US);
98 * From the spec: "both host names are IP addresses and their host name strings match
99 * exactly; or both host name
[all...]
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/http/
H A DRequestHeaders.java56 private String host; field in class:RequestHeaders
109 host = value;
175 return host;
226 public void setHost(String host) { argument
227 if (this.host != null) {
230 headers.add("Host", host);
231 this.host = host;
/libcore/luni/src/test/java/libcore/java/net/
H A DOldURLStreamHandlerTest.java214 String host,
218 super.setURL(u, protocol, host, port, file, ref);
223 String host,
230 super.setURL(u, protocol, host, port, authority,
212 setURL(URL u, String protocol, String host, int port, String file, String ref) argument
221 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
H A DOldURLTest.java71 assertEquals("Assert 1: wrong host", "[www.apache.org:8082]", testURL.getHost());
152 URL testURL = new URL("ftp://myname@host.dom/etc/motd");
155 assertEquals("Assert 1: wrong host", "host.dom", testURL.getHost());
162 new URL("ftpmyname@host.dom/etc/motd");
349 String testFTPURLString = "ftp://myname@host.dom/etc/motd";
361 // octet form, with no host
362 "http://host/a[path#frag", // an illegal char, not in escaped
365 "http://host/a%path#frag", // invalid escape sequence in path
366 "http://host/
587 checkConnect(String host, int port) argument
[all...]
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
H A DHandshakeCompletedEventTest.java205 private String host = "localhost"; field in class:HandshakeCompletedEventTest
H A DSSLSocketTest.java135 * javax.net.ssl.SSLSocket#SSLSocket(String host, int port)
168 * javax.net.ssl.SSLSocket#SSLSocket(String host, int port, InetAddress clientAddress,
608 private SSLSocket getSSLSocket(InetAddress host, int port) throws IOException { argument
609 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host, port);
612 private SSLSocket getSSLSocket(String host, int port) throws UnknownHostException, IOException { argument
613 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host, port);
616 private SSLSocket getSSLSocket(InetAddress host, int port, InetAddress localHost, int localPort) argument
618 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host,
624 private SSLSocket getSSLSocket(String host, int port, InetAddress localHost, int localPort) argument
626 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host,
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMySSLContextSpi.java95 protected SSLEngine engineCreateSSLEngine(String host, int port) { argument
99 return new tmpSSLEngine(host, port);
116 public tmpSSLEngine(String host, int port) { argument
117 tmpHost = host;
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DMySSLContextSpi.java93 protected SSLEngine engineCreateSSLEngine(String host, int port) { argument
97 return new tmpSSLEngine(host, port);
114 public tmpSSLEngine(String host, int port) { argument
115 tmpHost = host;
H A DmySSLSession.java31 public mySSLSession(String host, int port, byte[] id) { argument
34 nameHost = host;

Completed in 477 milliseconds

123