- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for matchesHostname (0.07 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerTest.kt
) assertEquals("sha256", pin.hashAlgorithm) assertEquals("**.example.co.uk", pin.pattern) Assertions.assertTrue(pin.matchesHostname("www.example.co.uk")) 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)
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
assertEquals("sha256", pin.hashAlgorithm) assertEquals("**.example.co.uk", pin.pattern) 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)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt
* Returns list of matching certificates' pins for the hostname. Returns an empty list if the * hostname does not have pinned certificates. */ fun findMatchingPins(hostname: String): List<Pin> = pins.filterList { matchesHostname(hostname) } /** Returns a certificate pinner that uses `certificateChainCleaner`. */ internal fun withCertificateChainCleaner(certificateChainCleaner: CertificateChainCleaner): CertificatePinner =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 14.1K bytes - Viewed (0) -
okhttp/api/jvm/okhttp.api
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 { public final fun -deprecated_authParams ()Ljava/util/Map;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0) -
okhttp/api/android/okhttp.api
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 { public final fun -deprecated_authParams ()Ljava/util/Map;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0)