Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for DelegatingSSLSocket (0.08 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt

    import javax.net.ssl.HandshakeCompletedListener
    import javax.net.ssl.SSLParameters
    import javax.net.ssl.SSLSession
    import javax.net.ssl.SSLSocket
    
    /** An [SSLSocket] that delegates all calls.  */
    abstract class DelegatingSSLSocket(protected val delegate: SSLSocket?) : SSLSocket() {
      @Throws(IOException::class)
      override fun shutdownInput() {
        delegate!!.shutdownInput()
      }
    
      @Throws(IOException::class)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/platform/Jdk9PlatformTest.kt

    package okhttp3.internal.platform
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import javax.net.ssl.SSLSocket
    import okhttp3.DelegatingSSLSocket
    import okhttp3.internal.platform.Jdk9Platform.Companion.buildIfSupported
    import okhttp3.testing.PlatformRule
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/FallbackTestClientSocketFactory.kt

      override fun configureSocket(sslSocket: SSLSocket): SSLSocket = TlsFallbackScsvDisabledSSLSocket(sslSocket)
    
      private class TlsFallbackScsvDisabledSSLSocket(
        socket: SSLSocket,
      ) : DelegatingSSLSocket(socket) {
        override fun setEnabledCipherSuites(suites: Array<String>) {
          val enabledCipherSuites = mutableListOf<String>()
          for (suite in suites) {
            if (suite != TLS_FALLBACK_SCSV) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/platform/android/AndroidSocketAdapterTest.kt

     * limitations under the License.
     */
    package okhttp3.internal.platform.android
    
    import java.security.Provider
    import javax.net.ssl.SSLContext
    import javax.net.ssl.SSLSocket
    import okhttp3.DelegatingSSLSocket
    import okhttp3.DelegatingSSLSocketFactory
    import okhttp3.Protocol.HTTP_1_1
    import okhttp3.Protocol.HTTP_2
    import okhttp3.testing.PlatformRule
    import org.conscrypt.Conscrypt
    import org.junit.Assert.assertFalse
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CipherSuiteTest.kt

            .build()
        applyConnectionSpec(connectionSpec, socket, false)
        assertArrayEquals(arrayOf("TLSv1.1", "TLSv1.2"), socket.enabledProtocols)
      }
    
      internal class FakeSslSocket : DelegatingSSLSocket(null) {
        private lateinit var enabledProtocols: Array<String>
        private lateinit var supportedCipherSuites: Array<String>
        private lateinit var enabledCipherSuites: Array<String>
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top