Code example for BrowserCompatHostnameVerifier

Methods: verify

0
					throw new TException(e);
				} 
				// timeout 8000ms 
				trans = TSSLTransportFactory.createClient(ctx.getSocketFactory(), host, port, 8000);
				if (prefs.getBoolean("ssl_validate", true)) {
					X509HostnameVerifier verifier = new BrowserCompatHostnameVerifier();
					try { 
						verifier.verify(host, (SSLSocket) ((TSocket) trans).getSocket());
					} catch (IOException e) {
						throw new TException(e);
					} 
					// TODO: check OCSP/CRL 
				} 
			} else { 
				trans = new TSocket(host, port, 8000);
				trans.open();
			} 
		} catch (TTransportException e) {
			throw new TException(e);
		}