- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 30 for certificatePinner (0.14 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt
* * ```java * String hostname = "publicobject.com"; * CertificatePinner certificatePinner = new CertificatePinner.Builder() * .add(hostname, "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") * .build(); * OkHttpClient client = OkHttpClient.Builder() * .certificatePinner(certificatePinner) * .build(); * * Request request = new Request.Builder()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 14.2K bytes - Click Count (1) -
okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerTest.kt
certificatePinner.check("example.com", listOf(certA1.certificate)) certificatePinner.check("www.example.com", listOf(certA1.certificate)) } @Test fun absentHostnameMatches() { val certificatePinner = CertificatePinner.Builder().build() certificatePinner.check("example.com", listOf(certA1.certificate)) } @Test fun successfulCheckForWildcardHostname() { val certificatePinner =
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 10.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import mockwebserver3.SocketEffect.ShutdownConnection import mockwebserver3.junit5.StartStop import okhttp3.CertificatePinner import okhttp3.CertificatePinner.Companion.pin import okhttp3.OkHttpClientTestRule import okhttp3.RecordingHostnameVerifier import okhttp3.Request import okhttp3.internal.platform.Platform.Companion.get
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 24.4K bytes - Click Count (2) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RealInterceptorChain.kt
} override fun withCertificatePinner(certificatePinner: CertificatePinner): Interceptor.Chain { check(exchange == null) { "certificatePinner can't be adjusted in a network interceptor" } val newCertificatePinner = if (certificateChainCleaner != null) { certificatePinner.withCertificateChainCleaner(certificateChainCleaner) } else { certificatePinner }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 12.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Address.kt
@JvmName("-deprecated_certificatePinner") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "certificatePinner"), level = DeprecationLevel.ERROR, ) fun certificatePinner(): CertificatePinner? = certificatePinner override fun equals(other: Any?): Boolean = other is Address && url == other.url && equalsNonHost(other)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 7.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerKotlinTest.kt
@Test fun successfulCheckSha1Pin() { val certificatePinner = CertificatePinner .Builder() .add("example.com", "sha1/" + certA1.certificate.sha1Hash().base64()) .build() certificatePinner.check("example.com", listOf(certA1.certificate)) } @Test fun successfulFindMatchingPins() { val certificatePinner = CertificatePinner .Builder()
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) -
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorOverridesTest.kt
object CertificatePinnerOverride : Override<CertificatePinner> { override fun Interceptor.Chain.value(): CertificatePinner = certificatePinner override fun Interceptor.Chain.withOverride(value: CertificatePinner): Interceptor.Chain = withCertificatePinner(value) override fun OkHttpClient.Builder.withOverride(value: CertificatePinner): OkHttpClient.Builder = certificatePinner(value)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 11 02:37:00 GMT 2026 - 28.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt
* Pinning certificates avoids the need to trust certificate authorities. */ fun certificatePinner(certificatePinner: CertificatePinner) = apply { if (certificatePinner != this.certificatePinner) { this.routeDatabase = null } this.certificatePinner = certificatePinner } /**Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 51.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Interceptor.kt
/** * Returns the [CertificatePinner] for the OkHttpClient, or an override from the Call.Chain. */ val certificatePinner: CertificatePinner /** * Returns a new chain with the specified [CertificatePinner]. */ fun withCertificatePinner(certificatePinner: CertificatePinner): Chain /**Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 8.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt
/** Can still coalesce when pinning is used if pins match. */ @Test fun coalescesWhenCertificatePinsMatch() { val pinner = CertificatePinner .Builder() .add("san.com", pin(certificate.certificate)) .build() client = client.newBuilder().certificatePinner(pinner).build() server.enqueue(MockResponse()) server.enqueue(MockResponse()) assert200Http2Response(execute(url), server.hostName)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jun 19 11:44:16 GMT 2025 - 19.1K bytes - Click Count (0)