Lines Matching refs:hostname
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 server
189 public static void verifyHostname(Socket socket, String hostname) throws IOException {
204 if (!HttpsURLConnection.getDefaultHostnameVerifier().verify(hostname, session)) {
205 throw new SSLPeerUnverifiedException("Cannot verify hostname: " + hostname);
397 * @param hostName the desired SNI hostname, null to disable.
432 * <p>This method verifies the peer's certificate hostname after connecting
505 * <p>This method verifies the peer's certificate hostname after connecting
526 * <p>This method verifies the peer's certificate hostname after connecting