- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for matchesCertificate (0.09 sec)
-
okhttp/src/test/java/okhttp3/CertificatePinnerTest.kt
Assertions.assertTrue(pin.matchesCertificate(certA1.certificate)) Assertions.assertFalse(pin.matchesCertificate(certB1.certificate)) } @Test fun testMatchesSha1() { val pin = CertificatePinner.Pin("example.com", certC1Sha1Pin) Assertions.assertTrue(pin.matchesCertificate(certC1.certificate)) Assertions.assertFalse(pin.matchesCertificate(certB1.certificate)) } @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CertificatePinnerKotlinTest.kt
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)) assertFalse(pin.matchesCertificate(certB1.certificate)) } @Test fun pinList() { val builder =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt
hostname.lastIndexOf('.', prefixLength - 1) == -1 } else -> hostname == pattern } } fun matchesCertificate(certificate: X509Certificate): Boolean { return when (hashAlgorithm) { "sha256" -> hash == certificate.sha256Hash() "sha1" -> hash == certificate.sha1Hash() else -> false }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 14.2K bytes - Viewed (0) -
okhttp/api/okhttp.api
public final fun getHash ()Lokio/ByteString; public final fun getHashAlgorithm ()Ljava/lang/String; public final fun getPattern ()Ljava/lang/String; public fun hashCode ()I public final fun matchesCertificate (Ljava/security/cert/X509Certificate;)Z public final fun matchesHostname (Ljava/lang/String;)Z public fun toString ()Ljava/lang/String; } public final class okhttp3/Challenge {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 70.2K bytes - Viewed (0)