/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | FakeSSLSession.java | 25 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 D | TestSSLContext.java | 91 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/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | MySSLContextSpi.java | 95 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 D | MySSLContextSpi.java | 93 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 D | SSLContextSpiImpl.java | 61 public SSLEngine engineCreateSSLEngine(String host, int port) { argument 71 return new tmpSSLEngine(host, port);
|
H A D | mySSLSession.java | 31 public mySSLSession(String host, int port, byte[] id) { argument 34 nameHost = host;
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTestCase.java | 652 * @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
|
H A D | DOMTestInnerClass.java | 134 String host, String file, String name, 137 test.assertURIEquals(assertID, scheme, path, host, file, name, query, 133 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 D | SecurityManager.java | 40 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 D | Authenticator.java | 36 private String host; field in class:Authenticator 161 * host name of the connection that requests authentication. 181 thisAuthenticator.host = rHost; 195 * Returns the host name of the connection that requests authentication or 198 * @return name of the requesting host or {@code null}. 201 return host; 211 * host name of the connection that requests authentication. 236 thisAuthenticator.host = rHost;
|
H A D | DatagramPacket.java | 23 * such as its source or destination host. 80 * {@code aPort} of the address {@code host}. The {@code length} must be 90 * @param host 91 * the address of the target host. 93 * the port of the target host. 95 public DatagramPacket(byte[] data, int offset, int length, InetAddress host, int aPort) { argument 98 address = host; 103 * {@code aPort} of the address {@code host}. The {@code length} must be 111 * @param host 112 * the address of the target host 116 DatagramPacket(byte[] data, int length, InetAddress host, int port) argument [all...] |
H A D | HttpCookie.java | 81 * 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 D | Inet6Address.java | 72 * Constructs an IPv6 address according to the given {@code host}, {@code 75 * @param host 76 * the host name associated with the address. 85 public static Inet6Address getByAddress(String host, byte[] addr, int scope_id) argument 94 return new Inet6Address(addr, host, scope_id); 98 * Gets an IPv6 address instance according to the given {@code host}, 103 * @param host 115 public static Inet6Address getByAddress(String host, byte[] addr, argument 118 Inet6Address address = Inet6Address.getByAddress(host, addr, 0);
|
H A D | InetAddress.java | 184 * 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...] |
H A D | InetSocketAddress.java | 80 * 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 D | ProxySelectorImpl.java | 95 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 D | SocketImpl.java | 32 * host). 78 * Binds this socket to the specified local host address and port number. 98 * Connects this socket to the specified remote host and port number. 100 * @param host 101 * the remote host this socket has to be connected to. 105 * if an error occurs while connecting to the remote host. 107 protected abstract void connect(String host, int port) throws IOException; argument 110 * Connects this socket to the specified remote host address and port 114 * the remote host address this socket has to be connected to. 118 * if an error occurs while connecting to the remote host [all...] |
H A D | SocketPermission.java | 27 public SocketPermission(String host, String action) { super(""); } argument
|
H A D | URI.java | 37 * {@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 D | URL.java | 43 * {@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 D | URLStreamHandler.java | 96 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...] |
/libcore/luni/src/main/java/java/util/logging/ |
H A D | SocketHandler.java | 43 * <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/luni/src/main/java/javax/net/ |
H A D | DefaultSocketFactory.java | 39 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 D | SocketFactory.java | 54 * 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/javax/net/ssl/ |
H A D | DefaultHostnameVerifier.java | 41 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
|