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
165 * Verify the hostname of the certificate used by the other end of a
166 * connected socket. You MUST call this if you did not supply a hostname
168 * redundantly if the hostname has already been verified.
170 * <p>Wildcard certificates are allowed to verify any matching hostname,
175 * @param hostname The expected hostname of the remote server
181 public static void verifyHostname(Socket socket, String hostname) throws IOException {
196 if (!HttpsURLConnection.getDefaultHostnameVerifier().verify(hostname, session)) {
197 throw new SSLPeerUnverifiedException("Cannot verify hostname: " + hostname);
389 * @param hostName the desired SNI hostname, null to disable.
424 * <p>This method verifies the peer's certificate hostname after connecting
497 * <p>This method verifies the peer's certificate hostname after connecting
518 * <p>This method verifies the peer's certificate hostname after connecting