- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for testMatchesSha256 (0.07 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerKotlinTest.kt
assertTrue(pin.matchesHostname("www.example.co.uk")) assertTrue(pin.matchesHostname("gopher.example.co.uk")) assertFalse(pin.matchesHostname("www.example.com")) } @Test fun testMatchesSha256() { val pin = Pin("example.com", certA1Sha256Pin) assertTrue(pin.matchesCertificate(certA1.certificate)) assertFalse(pin.matchesCertificate(certB1.certificate)) } @Test fun testMatchesSha1() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 8.2K bytes - Click Count (0)