/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | SNIHostName.java | 63 private final String hostname; field in SNIHostName 95 public SNIHostName(String hostname) { in SNIHostName() argument 99 (hostname = IDN.toASCII( in SNIHostName() 100 Objects.requireNonNull(hostname, in SNIHostName() 105 this.hostname = hostname; in SNIHostName() 175 this.hostname = IDN.toASCII( in SNIHostName() 201 return hostname; in getAsciiName() 224 return hostname.equalsIgnoreCase(((SNIHostName)other).hostname); in equals() 241 result = 31 * result + hostname.toUpperCase(Locale.ENGLISH).hashCode(); in hashCode() 273 return "type=host_name (0), value=" + hostname; in toString() [all …]
|
D | HostnameVerifier.java | 55 public boolean verify(String hostname, SSLSession session); in verify() argument
|
/libcore/ojluni/src/main/java/java/net/ |
D | InetSocketAddress.java | 59 private String hostname; field in InetSocketAddress.InetSocketAddressHolder 65 private InetSocketAddressHolder(String hostname, InetAddress addr, int port) { in InetSocketAddressHolder() argument 66 this.hostname = hostname; in InetSocketAddressHolder() 80 if (hostname != null) in getHostName() 81 return hostname; in getHostName() 88 if (hostname != null) in getHostString() 89 return hostname; in getHostString() 106 return hostname + ":" + port; in toString() 120 else if (hostname != null) in equals() 122 hostname.equalsIgnoreCase(that.hostname); in equals() [all …]
|
D | InetAddressImpl.java | 48 InetAddress[] lookupAllHostAddr(String hostname, int netId) throws UnknownHostException; in lookupAllHostAddr() argument
|
/libcore/luni/src/main/java/java/net/ |
D | AddressCache.java | 50 AddressCacheKey(String hostname, int netId) { in AddressCacheKey() argument 51 mHostname = hostname; in AddressCacheKey() 108 public Object get(String hostname, int netId) { in get() argument 109 AddressCacheEntry entry = cache.get(new AddressCacheKey(hostname, netId)); in get() 123 public void put(String hostname, int netId, InetAddress[] addresses) { in put() argument 124 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(addresses)); in put() 131 public void putUnknownHost(String hostname, int netId, String detailMessage) { in putUnknownHost() argument 132 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(detailMessage)); in putUnknownHost()
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | InetSocketAddress.java | 46 public InetSocketAddress(java.lang.String hostname, int port) { in InetSocketAddress() argument 50 private InetSocketAddress(int port, java.lang.String hostname) { in InetSocketAddress() argument 58 private static java.lang.String checkHost(java.lang.String hostname) { in checkHost() argument 142 java.lang.String hostname, java.net.InetAddress addr, int port) { in InetSocketAddressHolder() argument 180 private java.lang.String hostname; field in InetSocketAddress.InetSocketAddressHolder
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | HostnameVerifierBenchmark.java | 47 private String hostname; field in HostnameVerifierBenchmark 57 public boolean verify(String hostname, SSLSession sslSession) { in setUp() 63 HostnameVerifierBenchmark.this.hostname = hostname; in setUp() 79 hostnameVerifier.verify(hostname, sslSession); in timeVerify()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLContext.java | 107 private final String hostname; field in TestSSLContext.HostnameRewritingObjectOutputStream 109 public HostnameRewritingObjectOutputStream(OutputStream out, String hostname) in HostnameRewritingObjectOutputStream() argument 112 this.hostname = hostname; in HostnameRewritingObjectOutputStream() 117 return new PutFieldProxy(super.putFields(), hostname); in putFields() 122 private final String hostname; field in TestSSLContext.HostnameRewritingObjectOutputStream.PutFieldProxy 124 public PutFieldProxy(ObjectOutputStream.PutField delegate, String hostname) { in PutFieldProxy() argument 126 this.hostname = hostname; in PutFieldProxy() 172 delegate.put(name, hostname); in put() 191 …public InetSocketAddress getLoopbackAsHostname(String hostname, int port) throws IOException, Clas… in getLoopbackAsHostname() argument 195 … HostnameRewritingObjectOutputStream oos = new HostnameRewritingObjectOutputStream(baos, hostname); in getLoopbackAsHostname()
|
/libcore/luni/src/main/java/libcore/net/ |
D | NetworkSecurityPolicy.java | 129 public abstract boolean isCleartextTrafficPermitted(String hostname); in isCleartextTrafficPermitted() argument 147 public abstract boolean isCertificateTransparencyVerificationRequired(String hostname); in isCertificateTransparencyVerificationRequired() argument 162 public boolean isCleartextTrafficPermitted(String hostname) { in isCleartextTrafficPermitted() argument 167 public boolean isCertificateTransparencyVerificationRequired(String hostname) { in isCertificateTransparencyVerificationRequired() argument
|
/libcore/luni/src/test/java/libcore/libcore/net/http/ |
D | HttpURLConnectionFactoryTest.java | 59 final Dns dns = hostname -> Arrays.asList(lookupResult.get(hostname)); in testOpenConnection() 82 final Dns dns = hostname -> lookupResult.get(hostname); in testDns()
|
/libcore/ojluni/src/main/java/com/sun/net/ssl/internal/ssl/ |
D | X509ExtendedTrustManager.java | 91 String authType, String hostname, String algorithm) in checkClientTrusted() argument 120 String authType, String hostname, String algorithm) in checkServerTrusted() argument
|
/libcore/luni/src/main/native/ |
D | Portability.h | 28 static inline int android_getaddrinfofornet(const char* hostname, const char* servname, in android_getaddrinfofornet() argument 30 return getaddrinfo(hostname, servname, hints, res); in android_getaddrinfofornet()
|
/libcore/luni/src/test/java/libcore/libcore/net/ |
D | NetworkSecurityPolicyTest.java | 345 public void addHostMapping(String hostname, boolean isCleartextTrafficPermitted) { in addHostMapping() argument 346 mHostMap.put(hostname, isCleartextTrafficPermitted); in addHostMapping() 355 public boolean isCleartextTrafficPermitted(String hostname) { in isCleartextTrafficPermitted() argument 356 if (mHostMap.containsKey(hostname)) { in isCleartextTrafficPermitted() 357 return mHostMap.get(hostname); in isCleartextTrafficPermitted() 364 public boolean isCertificateTransparencyVerificationRequired(String hostname) { in isCertificateTransparencyVerificationRequired() argument
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | DefaultHostnameVerifierTest.java | 146 String hostname = "www.example.com"; in testNullParameters() local 150 verifier.verify(hostname, session); in testNullParameters() 153 verifier.verify(hostname, null); in testNullParameters() 417 private boolean verifyWithDomainNamePattern(String hostname, String pattern) { in verifyWithDomainNamePattern() argument 424 assertFalse("Verifier should ignore CN.", verifier.verify(hostname, session)); in verifyWithDomainNamePattern() 431 return verifier.verify(hostname, session); in verifyWithDomainNamePattern() 437 private boolean verifyWithServerCertificate(String hostname, X509Certificate certificate) { in verifyWithServerCertificate() argument 441 return verifier.verify(hostname, session); in verifyWithServerCertificate()
|
/libcore/luni/src/main/java/libcore/net/http/ |
D | Dns.java | 48 … @NonNull List<@NonNull InetAddress> lookup(@Nullable String hostname) throws UnknownHostException; in lookup() argument
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | InetSocketAddress.annotated.java | 41 public InetSocketAddress(java.lang.String hostname, int port) { throw new RuntimeException("Stub!")… in InetSocketAddress() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | HttpsURLConnectionTest.java | 321 public boolean verify(String hostname, SSLSession session) { in verify() argument 322 if (hostname == session.getPeerHost()) { in verify()
|
/libcore/ojluni/src/main/native/ |
D | net_util_md.h | 109 const char* hostname,
|
D | net_util_md.c | 465 const char* hostname, in ThrowUnknownHostExceptionWithGaiError() argument 476 size = strlen(format) + strlen(hostname) + strlen(error_string) + 2; in ThrowUnknownHostExceptionWithGaiError() 480 snprintf(buf, size, format, hostname, error_string); in ThrowUnknownHostExceptionWithGaiError()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
D | HttpsURLConnectionTest.java | 778 public boolean verify(String hostname, SSLSession session) { in verify() argument 780 System.out.println("***> verification " + hostname + " " in verify()
|
/libcore/support/src/test/java/tests/resources/x509/ |
D | default.cnf | 163 commonName = Common Name (eg, your name or your server\'s hostname)
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URLConnectionTest.java | 3390 public boolean verify(String hostname, SSLSession session) { 3391 calls.add("verify " + hostname);
|