Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for supportedCipherSuites (0.23 sec)

  1. okhttp/src/test/java/okhttp3/CipherSuiteTest.kt

          this.enabledProtocols = protocols
        }
    
        override fun getSupportedCipherSuites(): Array<String> {
          return supportedCipherSuites
        }
    
        fun setSupportedCipherSuites(supportedCipherSuites: Array<String>) {
          this.supportedCipherSuites = supportedCipherSuites
        }
    
        override fun getEnabledCipherSuites(): Array<String> {
          return enabledCipherSuites
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt

        val supportedCipherSuites = sslSocket.supportedCipherSuites
        val indexOfFallbackScsv =
          supportedCipherSuites.indexOf(
            "TLS_FALLBACK_SCSV",
            CipherSuite.ORDER_BY_NAME,
          )
        if (isFallback && indexOfFallbackScsv != -1) {
          cipherSuitesIntersection =
            cipherSuitesIntersection.concat(
              supportedCipherSuites[indexOfFallbackScsv],
            )
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocketFactory.kt

      }
    
      override fun getDefaultCipherSuites(): Array<String> {
        return delegate.defaultCipherSuites
      }
    
      override fun getSupportedCipherSuites(): Array<String> {
        return delegate.supportedCipherSuites
      }
    
      @Throws(IOException::class)
      override fun createSocket(
        socket: Socket,
        host: String,
        port: Int,
        autoClose: Boolean,
      ): SSLSocket {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Clients.kt

      return Client(
        userAgent = name,
        version = version,
        enabled = sslSocket.enabledCipherSuites.map { ianaSuites.fromJavaName(it) },
        supported = sslSocket.supportedCipherSuites.map { ianaSuites.fromJavaName(it) },
      )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 01:44:15 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt

      }
    
      @Throws(IOException::class)
      override fun shutdownOutput() {
        delegate!!.shutdownOutput()
      }
    
      override fun getSupportedCipherSuites(): Array<String> {
        return delegate!!.supportedCipherSuites
      }
    
      override fun getEnabledCipherSuites(): Array<String> {
        return delegate!!.enabledCipherSuites
      }
    
      override fun setEnabledCipherSuites(suites: Array<String>) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt

        expectedCipherSuites.add(CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256.javaName)
        expectedCipherSuites.add(CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA.javaName)
        if (listOf<String>(*socket.supportedCipherSuites).contains("TLS_FALLBACK_SCSV")) {
          expectedCipherSuites.add("TLS_FALLBACK_SCSV")
        }
        assertThat(socket.enabledCipherSuites)
          .containsExactly(*expectedCipherSuites.toTypedArray())
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

        defaultEnabledCipherSuites =
          handshakeCertificates.sslSocketFactory().defaultCipherSuites.toList()
        defaultSupportedCipherSuites =
          handshakeCertificates.sslSocketFactory().supportedCipherSuites.toList()
      }
    
      @Test
      fun testDefaultHandshakeCipherSuiteOrderingTls12Restricted() {
        // We are avoiding making guarantees on ordering of secondary Platforms.
        platform.assumeNotConscrypt()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallTest.kt

      fun recoverFromTlsHandshakeFailure_tlsFallbackScsvEnabled() {
        platform.assumeNotConscrypt()
        val tlsFallbackScsv = "TLS_FALLBACK_SCSV"
        val supportedCiphers = listOf(*handshakeCertificates.sslSocketFactory().supportedCipherSuites)
        if (!supportedCiphers.contains(tlsFallbackScsv)) {
          // This only works if the client socket supports TLS_FALLBACK_SCSV.
          return
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
Back to top