/libcore/luni/src/main/java/libcore/net/ |
H A D | NetworkSecurityPolicy.java | 67 * without TLS or STARTTLS) is permitted for communicating with {@code hostname} for this 72 public abstract boolean isCleartextTrafficPermitted(String hostname); argument 76 * the server and verified by the client in TLS connections to {@code hostname}. 80 public abstract boolean isCertificateTransparencyVerificationRequired(String hostname); argument 89 public boolean isCleartextTrafficPermitted(String hostname) { argument 94 public boolean isCertificateTransparencyVerificationRequired(String hostname) { argument
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
H A D | HostnameVerifier.java | 29 * This class is the base interface for hostname verification. 31 * During handshaking, if the URL's hostname and 32 * the server's identification hostname mismatch, the 39 * These callbacks are used when the default rules for URL hostname 51 * @param hostname the host name 55 public boolean verify(String hostname, SSLSession session); argument
|
H A D | SNIHostName.java | 45 * "HostName" contains the fully qualified DNS hostname of the server, as 46 * understood by the client. The encoded server name value of a hostname is 63 private final String hostname; field in class:SNIHostName 66 * Creates an {@code SNIHostName} using the specified hostname. 69 * the encoded server name value of a hostname is 71 * {@code hostname} can be a user-friendly Internationalized Domain Name 77 * translate the {@code hostname} into ASCII Compatible Encoding (ACE), as: 79 * IDN.toASCII(hostname, IDN.USE_STD3_ASCII_RULES); 82 * The {@code hostname} argument is illegal if it: 84 * <li> {@code hostname} i 95 SNIHostName(String hostname) argument [all...] |
/libcore/luni/src/main/java/java/net/ |
H A D | AddressCache.java | 47 AddressCacheKey(String hostname, int netId) { argument 48 mHostname = hostname; 98 * Returns the cached InetAddress[] for 'hostname' on network 'netId'. Returns null 99 * if nothing is known about 'hostname'. Returns a String suitable for use as an 100 * UnknownHostException detail message if 'hostname' is known not to exist. 102 public Object get(String hostname, int netId) { argument 103 AddressCacheEntry entry = cache.get(new AddressCacheKey(hostname, netId)); 114 * Associates the given 'addresses' with 'hostname'. The association will expire after a 117 public void put(String hostname, int netId, InetAddress[] addresses) { argument 118 cache.put(new AddressCacheKey(hostname, netI 125 putUnknownHost(String hostname, int netId, String detailMessage) argument [all...] |
/libcore/ojluni/src/main/java/java/net/ |
H A D | InetSocketAddress.java | 38 * It can also be a pair (hostname + port number), in which case an attempt 39 * will be made to resolve the hostname. If resolution fails then the address 58 // The hostname of the Socket Address 59 private String hostname; field in class:InetSocketAddress.InetSocketAddressHolder 65 private InetSocketAddressHolder(String hostname, InetAddress addr, int port) { argument 66 this.hostname = hostname; 80 if (hostname != null) 81 return hostname; 88 if (hostname ! 148 checkHost(String hostname) argument 230 InetSocketAddress(String hostname, int port) argument 243 InetSocketAddress(int port, String hostname) argument [all...] |
H A D | InetAddressImpl.java | 39 // BEGIN Android-changed: Rewrote hostname lookup methods on top of Libcore.os. 43 lookupAllHostAddr(String hostname) throws UnknownHostException; 46 * Lookup all addresses for {@code hostname} on the given {@code netId}. 48 InetAddress[] lookupAllHostAddr(String hostname, int netId) throws UnknownHostException; argument 59 // END Android-changed: Rewrote hostname lookup methods on top of Libcore.os.
|
/libcore/ojluni/src/main/java/com/sun/net/ssl/internal/ssl/ |
H A D | X509ExtendedTrustManager.java | 76 * to use. If the algorithm and the peer hostname are available, the 77 * peer hostname is checked against the peer's identity presented in 82 * @param hostname the peer hostname 91 String authType, String hostname, String algorithm) 105 * to use. If the algorithm and the peer hostname are available, the 106 * peer hostname is checked against the peer's identity presented in 111 * @param hostname the peer hostname 120 String authType, String hostname, Strin 90 checkClientTrusted(X509Certificate[] chain, String authType, String hostname, String algorithm) argument 119 checkServerTrusted(X509Certificate[] chain, String authType, String hostname, String algorithm) argument [all...] |
/libcore/luni/src/main/native/ |
H A D | Portability.h | 28 static inline int android_getaddrinfofornet(const char* hostname, const char* servname, argument 30 return getaddrinfo(hostname, servname, hints, res);
|
/libcore/support/src/test/java/libcore/tlswire/handshake/ |
H A D | ServerNameHelloExtension.java | 47 String hostname = new String(hostnameBytes, "US-ASCII"); 48 hostnames.add(hostname);
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | HostnameVerifierBenchmark.java | 47 private String hostname; field in class:HostnameVerifierBenchmark 57 public boolean verify(String hostname, SSLSession sslSession) { 63 HostnameVerifierBenchmark.this.hostname = hostname; 79 hostnameVerifier.verify(hostname, sslSession);
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | TestSSLContext.java | 103 * Used for replacing the hostname in an InetSocketAddress object during 107 private final String hostname; field in class:TestSSLContext.HostnameRewritingObjectOutputStream 109 public HostnameRewritingObjectOutputStream(OutputStream out, String hostname) argument 112 this.hostname = hostname; 117 return new PutFieldProxy(super.putFields(), hostname); 122 private final String hostname; field in class:TestSSLContext.HostnameRewritingObjectOutputStream.PutFieldProxy 124 public PutFieldProxy(ObjectOutputStream.PutField delegate, String hostname) { argument 126 this.hostname = hostname; 191 getLoopbackAsHostname(String hostname, int port) argument [all...] |
/libcore/luni/src/test/java/libcore/libcore/net/ |
H A D | NetworkSecurityPolicyTest.java | 345 public void addHostMapping(String hostname, boolean isCleartextTrafficPermitted) { argument 346 mHostMap.put(hostname, isCleartextTrafficPermitted); 355 public boolean isCleartextTrafficPermitted(String hostname) { argument 356 if (mHostMap.containsKey(hostname)) { 357 return mHostMap.get(hostname); 364 public boolean isCertificateTransparencyVerificationRequired(String hostname) { argument
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | DefaultHostnameVerifierTest.java | 146 String hostname = "www.example.com"; 150 verifier.verify(hostname, session); 153 verifier.verify(hostname, null); 414 * Verifies the provided hostname against the provided domain name pattern from server 417 private boolean verifyWithDomainNamePattern(String hostname, String pattern) { argument 424 assertFalse("Verifier should ignore CN.", verifier.verify(hostname, session)); 431 return verifier.verify(hostname, session); 435 * Verifies the provided hostname against the provided server certificate. 437 private boolean verifyWithServerCertificate(String hostname, X509Certificate certificate) { argument 441 return verifier.verify(hostname, sessio [all...] |
/libcore/ojluni/src/main/native/ |
H A D | net_util_md.h | 102 const char* hostname,
|
H A D | net_util_md.c | 465 const char* hostname, 476 size = strlen(format) + strlen(hostname) + strlen(error_string) + 2; 480 snprintf(buf, size, format, hostname, error_string); 464 ThrowUnknownHostExceptionWithGaiError(JNIEnv *env, const char* hostname, int gai_error) argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
H A D | HttpsURLConnectionTest.java | 103 assertNotNull("Default hostname verifyer is null", verifyer); 115 assertEquals("Incorrect value of hostname verirfyer", 321 public boolean verify(String hostname, SSLSession session) { argument 322 if (hostname == session.getPeerHost()) {
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
H A D | HttpsURLConnectionTest.java | 778 public boolean verify(String hostname, SSLSession session) { argument 780 System.out.println("***> verification " + hostname + " "
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | URLConnectionTest.java | 745 * We were verifying the wrong hostname when connecting to an HTTPS site 2082 * connection attempt. If a hostname resolves to multiple IPs HttpURLConnection will wait the 3157 public boolean verify(String hostname, SSLSession session) { argument 3158 calls.add("verify " + hostname);
|