Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Pin (0.15 sec)

  1. okhttp/src/test/java/okhttp3/CertificatePinnerKotlinTest.kt

        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() {
        val pin = Pin("example.com", certC1Sha1Pin)
        assertTrue(pin.matchesCertificate(certC1.certificate))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.1K bytes
    - Viewed (0)
Back to top