Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for CertificateChainCleaner (0.12 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/CertificateChainCleaner.kt

     * pinning.
     */
    abstract class CertificateChainCleaner {
      @Throws(SSLPeerUnverifiedException::class)
      abstract fun clean(
        chain: List<Certificate>,
        hostname: String,
      ): List<Certificate>
    
      companion object {
        fun get(trustManager: X509TrustManager): CertificateChainCleaner = Platform.get().buildCertificateChainCleaner(trustManager)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2K bytes
    - Viewed (0)
  2. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/Android10Platform.kt

    import okhttp3.internal.platform.android.BouncyCastleSocketAdapter
    import okhttp3.internal.platform.android.ConscryptSocketAdapter
    import okhttp3.internal.platform.android.DeferredSocketAdapter
    import okhttp3.internal.tls.CertificateChainCleaner
    import okhttp3.internal.tls.TrustRootIndex
    
    /** Android 10+ (API 29+). */
    @SuppressSignatureCheck
    class Android10Platform :
      Platform(),
      ContextAwarePlatform {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Jul 20 11:25:50 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt

      /** Returns a certificate pinner that uses `certificateChainCleaner`. */
      internal fun withCertificateChainCleaner(certificateChainCleaner: CertificateChainCleaner): CertificatePinner =
        if (this.certificateChainCleaner == certificateChainCleaner) {
          this
        } else {
          CertificatePinner(pins, certificateChainCleaner)
        }
    
      override fun equals(other: Any?): Boolean =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt

      val hostnameVerifier: HostnameVerifier = builder.hostnameVerifier
    
      @get:JvmName("certificatePinner")
      val certificatePinner: CertificatePinner
    
      @get:JvmName("certificateChainCleaner")
      val certificateChainCleaner: CertificateChainCleaner?
    
      /**
       * Default call timeout (in milliseconds). By default there is no timeout for complete calls, but
       * there is for the connect, write, and read actions within a call.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  5. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidCertificateChainCleaner.kt

    import javax.net.ssl.SSLPeerUnverifiedException
    import javax.net.ssl.X509TrustManager
    import okhttp3.internal.SuppressSignatureCheck
    import okhttp3.internal.tls.CertificateChainCleaner
    
    /**
     * Android implementation of CertificateChainCleaner using direct Android API calls.
     * Not used if X509TrustManager doesn't implement [X509TrustManager.checkServerTrusted] with
     * an additional host param.
     */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt

    import okhttp3.internal.readFieldOrNull
    import okhttp3.internal.tls.BasicCertificateChainCleaner
    import okhttp3.internal.tls.BasicTrustRootIndex
    import okhttp3.internal.tls.CertificateChainCleaner
    import okhttp3.internal.tls.TrustRootIndex
    import okio.Buffer
    import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
    
    /**
     * Access to platform-specific features.
     *
     * ### Session Tickets
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

    import okhttp3.internal.platform.android.DeferredSocketAdapter
    import okhttp3.internal.platform.android.StandardAndroidSocketAdapter
    import okhttp3.internal.tls.BasicTrustRootIndex
    import okhttp3.internal.tls.CertificateChainCleaner
    import okhttp3.internal.tls.TrustRootIndex
    
    /** Android 5 to 9 (API 21 to 28). */
    @SuppressSignatureCheck
    class AndroidPlatform :
      Platform(),
      ContextAwarePlatform {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 29 16:52:38 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/CertificateChainCleanerTest.kt

    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import java.security.cert.Certificate
    import javax.net.ssl.SSLPeerUnverifiedException
    import kotlin.test.assertFailsWith
    import okhttp3.internal.tls.CertificateChainCleaner.Companion.get
    import okhttp3.tls.HandshakeCertificates
    import okhttp3.tls.HeldCertificate
    import org.junit.jupiter.api.Test
    
    class CertificateChainCleanerTest {
      @Test
      fun equalsFromCertificate() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 9.5K bytes
    - Viewed (1)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

     * [TrustedCertificateIndex].
     *
     * [Conscrypt]: https://conscrypt.org/
     */
    class BasicCertificateChainCleaner(
      private val trustRootIndex: TrustRootIndex,
    ) : CertificateChainCleaner() {
      /**
       * Returns a cleaned chain for [chain].
       *
       * This method throws if the complete chain to a trusted CA certificate cannot be constructed.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

            Handshake(
              unverifiedHandshake.tlsVersion,
              unverifiedHandshake.cipherSuite,
              unverifiedHandshake.localCertificates,
            ) {
              certificatePinner.certificateChainCleaner!!.clean(
                unverifiedHandshake.peerCertificates,
                address.url.host,
              )
            }
          this.handshake = handshake
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.6K bytes
    - Viewed (0)
Back to top