Lines Matching refs:hostname
70 * This implementation does check the server's certificate hostname, but only
71 * for createSocket variants that specify a hostname. When using methods that
77 * {@link HostnameVerifier} to verify the certificate hostname.
80 * SSL certificate and hostname checks for testing purposes. This setting
174 * Verify the hostname of the certificate used by the other end of a
175 * connected socket. You MUST call this if you did not supply a hostname
177 * redundantly if the hostname has already been verified.
179 * <p>Wildcard certificates are allowed to verify any matching hostname,
184 * @param hostname The expected hostname of the remote server
190 public static void verifyHostname(Socket socket, String hostname) throws IOException {
205 if (!HOSTNAME_VERIFIER.verify(hostname, session)) {
206 throw new SSLPeerUnverifiedException("Cannot verify hostname: " + hostname);
251 * <p>This method verifies the peer's certificate hostname after connecting
312 * <p>This method verifies the peer's certificate hostname after connecting
330 * <p>This method verifies the peer's certificate hostname after connecting