- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testMatchesSha256 (0.09 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerTest.kt
Assertions.assertTrue(pin.matchesHostname("gopher.example.co.uk")) Assertions.assertFalse(pin.matchesHostname("www.example.com")) } @Test fun testMatchesSha256() { val pin = CertificatePinner.Pin("example.com", certA1Sha256Pin) Assertions.assertTrue(pin.matchesCertificate(certA1.certificate)) Assertions.assertFalse(pin.matchesCertificate(certB1.certificate)) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.1K bytes - Viewed (0) -
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() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.2K bytes - Viewed (0)