Lines Matching defs:hostname
148 // test without a hostname, expecting failure
150 // test without a hostname, expecting success
152 // test an unpinned hostname that should fail
154 // test an unpinned hostname that should succeed
156 // test a pinned hostname that should fail
158 // test a pinned hostname that should succeed
173 private TrustManagerImpl trustManager(X509Certificate ca, String hostname, X509Certificate pin)
176 CertPinManager cm = certManager(hostname, pin);
183 private CertPinManager certManager(String hostname, X509Certificate pin) throws Exception {
186 pinString = hostname + "=true|" + getFingerprint(pin);
202 private void assertValidPinned(X509Certificate[] chain, X509TrustManager tm, String hostname,
206 List<X509Certificate> checkedChain = tmi.checkServerTrusted(chain, "RSA", hostname);
225 private void assertInvalidPinned(X509Certificate[] chain, X509TrustManager tm, String hostname)
230 tmi.checkServerTrusted(chain, "RSA", hostname);