Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for certificatePinner (0.24 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

              )
            }
          }
    
          val certificatePinner = address.certificatePinner!!
    
          val handshake =
            Handshake(
              unverifiedHandshake.tlsVersion,
              unverifiedHandshake.cipherSuite,
              unverifiedHandshake.localCertificates,
            ) {
              certificatePinner.certificateChainCleaner!!.clean(
                unverifiedHandshake.peerCertificates,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

        return Address(
          uriHost = uriHost,
          uriPort = uriPort,
          dns = dns,
          socketFactory = SocketFactory.getDefault(),
          sslSocketFactory = null,
          hostnameVerifier = null,
          certificatePinner = null,
          proxyAuthenticator = proxyAuthenticator,
          proxy = proxy,
          protocols = protocols,
          connectionSpecs = connectionSpecs,
          proxySelector = proxySelector,
        )
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        if (address.hostnameVerifier !== OkHostnameVerifier) return false
        if (!supportsUrl(address.url)) return false
    
        // 4. Certificate pinning must match the host.
        try {
          address.certificatePinner!!.check(address.url.host, handshake()!!.peerCertificates)
        } catch (_: SSLPeerUnverifiedException) {
          return false
        }
    
        return true // The caller's address can be carried by this connection.
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top