/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/tls/ |
OkHostnameVerifier.java | 95 * Returns true if {@code certificate} matches {@code hostName}. 97 private boolean verifyHostName(String hostName, X509Certificate certificate) { 98 hostName = hostName.toLowerCase(Locale.US); 103 if (verifyHostName(hostName, altNames.get(i))) { 113 return verifyHostName(hostName, cn); 159 * Returns {@code true} iff {@code hostName} matches the domain name {@code pattern}. 161 * @param hostName lower-case host name. 165 private boolean verifyHostName(String hostName, String pattern) { 168 if ((hostName == null) || (hostName.length() == 0) || (hostName.startsWith(".") [all...] |
/libcore/luni/src/main/java/java/net/ |
InetAddress.java | 48 * <p>An {@code InetAddress} may have a hostname (accessible via {@code getHostName}), but may not, 137 String hostName; 150 InetAddress(int family, byte[] ipaddress, String hostName) { 153 this.hostName = hostName; 189 * @param hostName the hostname corresponding to the IP address. 192 private static InetAddress[] bytesToInetAddresses(byte[][] rawAddresses, String hostName) 197 returnedAddresses[i] = makeInetAddress(rawAddresses[i], hostName); 210 * @param host the hostname or literal IP string to be resolved 486 String hostname = Libcore.os.getnameinfo(address, NI_NAMEREQD); local [all...] |
Inet4Address.java | 51 Inet4Address(byte[] ipaddress, String hostName) { 52 super(AF_INET, ipaddress, hostName); 129 return new Inet4Address(ipaddress, hostName);
|
Inet6Address.java | 65 Inet6Address(byte[] ipaddress, String hostName, int scope_id) { 66 super(AF_INET6, ipaddress, hostName); 104 * the hostname associated with the address.
|
/external/conscrypt/src/platform/java/org/conscrypt/ |
CertPinManager.java | 61 * Given a {@code hostname} and a {@code chain} this verifies that the 63 * {@code hostname} is on the list of sites that should be pinned. 69 public boolean isChainValid(String hostname, List<X509Certificate> chain) 72 final PinListEntry entry = lookup(hostname); 74 // There was no entry in the pin list for this hostname. 134 private synchronized PinListEntry lookup(String hostname) throws PinManagerException { 140 // if so, check the hostname cache 141 String cn = hostnameCache.get(hostname); 148 cn = getMatchingCN(hostname); 150 hostnameCache.put(hostname, cn) [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
SecurityRequiredDialogFragment.java | 43 private final static String ARGS_HOST_NAME = "SecurityRequiredDialog.HostName"; 57 public static SecurityRequiredDialogFragment newInstance(String hostName) { 60 arguments.putString(ARGS_HOST_NAME, hostName); 69 final String hostName = arguments.getString(ARGS_HOST_NAME); 77 R.string.account_setup_security_policies_required_fmt, hostName))
|
AccountCheckSettingsFragment.java | 100 * @param hostName Passed back from the MessagingException 102 void onCheckSettingsSecurityRequired(String hostName); 233 String hostName = ex.getMessage(); 234 if (hostName != null) { 235 hostName = hostName.trim(); 237 getCallbackTarget().onCheckSettingsSecurityRequired(hostName);
|
AccountServerSettingsActivity.java | 166 public void onCheckSettingsSecurityRequired(String hostName) { 168 SecurityRequiredDialogFragment.newInstance(hostName)
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/ |
SslContextBuilder.java | 42 * self-signed certificate for a single hostname such as "localhost". 55 private final String hostName; 60 * @param hostName the subject of the host. For TLS this should be the 63 public SslContextBuilder(String hostName) { 64 this.hostName = hostName; 114 * Generates a certificate for {@code hostName} containing {@code keyPair}'s 121 X500Principal issuer = new X500Principal("CN=" + hostName); 122 X500Principal subject = new X500Principal("CN=" + hostName);
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/ |
SocketTransportWrapper.java | 60 String hostName = null; 69 hostName = address.substring(0, i); 79 if (hostName != null) { 80 hostAddr = InetAddress.getByName(hostName); 88 if (hostName != null) { 140 String hostName = null; 148 hostName = address.substring(0, i); 164 transportSocket = new Socket(hostName, port);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
SpdyConnection.java | 82 private final String hostName; 150 hostName = builder.hostName; 157 Util.threadFactory(String.format("OkHttp %s Push Observer", hostName), true)); 343 executor.submit(new NamedRunnable("OkHttp %s stream %d", hostName, streamId) { 358 executor.execute(new NamedRunnable("OkHttp Window Update %s stream %d", hostName, streamId) { 391 hostName, payload1, payload2) { 517 private String hostName; 532 public Builder(String hostName, boolean client, Socket socket) throws IOException { 533 this.hostName = hostName [all...] |
/external/nist-sip/java/gov/nist/core/ |
Host.java | 43 * Stores hostname. 68 protected static final int HOSTNAME = 1; 72 /** hostName field 74 protected String hostname; field in class:Host 86 addressType = HOSTNAME; 94 public Host(String hostName) throws IllegalArgumentException { 95 if (hostName == null) 101 setHost(hostName, IPV4ADDRESS); 124 if (addressType == IPV6ADDRESS && !isIPv6Reference(hostname)) { 125 buffer.append('[').append(hostname).append(']') [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
InetAddressThreadTest.java | 86 String hostName = ia.getHostName(); 91 // may not include a domain suffix on the hostname 92 if (!hostName.startsWith(correctName)) { 97 + hostName
|
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
HopImpl.java | 70 * @param hostName hostname 74 public HopImpl(String hostName, int portNumber, String trans) { 75 host = hostName;
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
EmailAddress.java | 261 * @param hostName The new host name of the email address. 263 public void setHost(final String hostName) { 264 host = hostName;
|
/frameworks/base/core/java/org/apache/http/conn/ssl/ |
AbstractVerifier.java | 154 // establish the socket to the hostname in the certificate. 155 String hostName = host.trim().toLowerCase(Locale.ENGLISH); 178 match = hostName.endsWith(cn.substring(1)); 182 match = countDots(hostName) == countDots(cn); 185 match = hostName.equals(cn); 192 throw new SSLException("hostname in certificate didn't match: <" + host + "> !=" + buf);
|
/libcore/luni/src/main/java/libcore/net/url/ |
FtpURLConnection.java | 94 private String hostName; 109 hostName = url.getHost(); 113 + url.getProtocol() + "://" + hostName 226 InetSocketAddress addr = new InetSocketAddress(hostName, port); 328 return new SocketPermission(hostName + ":" + port, "connect, resolve");
|
/external/apache-http/src/org/apache/http/client/protocol/ |
RequestAddCookies.java | 139 String hostName = targetHost.getHostName(); 146 hostName,
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
TestResults.java | 127 String hostName = ""; 129 hostName = InetAddress.getLocalHost().getHostName(); 131 serializer.attribute(ns, "name", hostName);
|
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/ |
HttpURLConnectionImpl.java | 258 String hostName = getURL().getHost(); 262 hostName = proxyAddress.getHostName(); 265 return new SocketPermission(hostName + ":" + hostPort, "connect, resolve");
|
/frameworks/base/core/java/android/net/ |
SSLCertificateSocketFactory.java | 48 * <li>Hostname verification in most cases (see WARNINGs below) 60 * This implementation does check the server's certificate hostname, but only 61 * for createSocket variants that specify a hostname. When using methods that 67 * {@link HostnameVerifier} to verify the certificate hostname. 70 * SSL certificate and hostname checks for testing purposes. This setting 173 * Verify the hostname of the certificate used by the other end of a 174 * connected socket. You MUST call this if you did not supply a hostname 176 * redundantly if the hostname has already been verified. 178 * <p>Wildcard certificates are allowed to verify any matching hostname, 183 * @param hostname The expected hostname of the remote serve [all...] |
/frameworks/base/services/net/java/android/net/dhcp/ |
DhcpPacket.java | 600 addTlv(buf, DHCP_HOST_NAME, SystemProperties.get("net.hostname")); 698 String hostName = null; 865 hostName = readAsciiString(packet, optionLen, false); [all...] |
/external/conscrypt/src/main/java/org/conscrypt/ |
SSLParametersImpl.java | 372 OpenSSLSessionImpl getSessionToReuse(long sslNativePointer, String hostname, int port) 377 sessionToReuse = getCachedClientSession(clientSessionContext, hostname, port); 588 final OpenSSLSessionImpl sessionToReuse, String hostname, int port, 607 peerCertificates, hostname, port, getSessionContext()); 706 OpenSSLSessionImpl getCachedClientSession(ClientSessionContext sessionContext, String hostName, 708 if (hostName == null) { 711 OpenSSLSessionImpl session = (OpenSSLSessionImpl) sessionContext.getSession(hostName, port); [all...] |
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
MockWebServer.java | 138 String hostName = getHostName(); 139 return hostName.contains(".") ? hostName : ".local";
|
/external/apache-http/android/src/android/net/http/ |
RequestQueue.java | 424 String hostName = entry.getKey().getHostName(); 425 StringBuilder line = new StringBuilder("p" + count++ + " " + hostName + " ");
|