Searched refs:verifier (Results 1 – 3 of 3) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | HostnameVerifierTest.java | 45 HostnameVerifier verifier = HttpsURLConnection.getDefaultHostnameVerifier(); in testVerify() local 53 assertFalse(verifier.verify("foo.com", session)); in testVerify() 54 assertFalse(verifier.verify("a.foo.com", session)); in testVerify() 55 assertFalse(verifier.verify("bar.com", session)); in testVerify() 61 assertFalse(verifier.verify("\u82b1\u5b50.co.jp", session)); in testVerify() 62 assertFalse(verifier.verify("a.\u82b1\u5b50.co.jp", session)); in testVerify() 68 assertFalse(verifier.verify("foo.com", session)); in testVerify() 69 assertFalse(verifier.verify("a.foo.com", session)); in testVerify() 70 assertTrue(verifier.verify("bar.com", session)); in testVerify() 71 assertFalse(verifier.verify("a.bar.com", session)); in testVerify() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SignatureBenchmark.java | 112 Signature verifier; in timeVerify() local 115 verifier = Signature.getInstance(signatureAlgorithm, "AndroidOpenSSL"); in timeVerify() 118 verifier = Signature.getInstance(signatureAlgorithm, "BC"); in timeVerify() 123 verifier.initVerify(publicKey); in timeVerify() 124 verifier.update(DATA); in timeVerify() 125 verifier.verify(signature); in timeVerify()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | DefaultHostnameVerifierTest.java | 51 private final HostnameVerifier verifier = HttpsURLConnection.getDefaultHostnameVerifier(); field in DefaultHostnameVerifierTest 150 verifier.verify(hostname, session); in testNullParameters() 153 verifier.verify(hostname, null); in testNullParameters() 159 verifier.verify(null, session); in testNullParameters() 424 assertFalse("Verifier should ignore CN.", verifier.verify(hostname, session)); in verifyWithDomainNamePattern() 431 return verifier.verify(hostname, session); in verifyWithDomainNamePattern() 441 return verifier.verify(hostname, session); in verifyWithServerCertificate()
|