Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for ArrayOf (0.16 sec)

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

        assertArrayEquals(arrayOf("TLS_A", "TLS_C"), socket.enabledCipherSuites)
      }
    
      @Test
      fun applyIntersectionRetainsSslPrefixes() {
        val socket = FakeSslSocket()
        socket.enabledProtocols = arrayOf("TLSv1")
        socket.supportedCipherSuites =
          arrayOf("TLS_A", "TLS_B", "TLS_C", "TLS_D", "TLS_E")
        socket.enabledCipherSuites = arrayOf("TLS_A", "TLS_B", "TLS_C")
        val connectionSpec =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/HandshakeTest.kt

        assertThat(handshake.localCertificates).isEmpty()
      }
    
      @Test
      fun createFromSslSession() {
        val sslSession =
          FakeSSLSession(
            "TLSv1.3",
            "TLS_AES_128_GCM_SHA256",
            arrayOf(serverCertificate.certificate, serverIntermediate.certificate),
            null,
          )
    
        val handshake = sslSession.handshake()
    
        assertThat(handshake.tlsVersion).isEqualTo(TlsVersion.TLS_1_3)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. okhttp-android/src/test/kotlin/okhttp3/android/ShadowDnsResolver.kt

      ) {
        responder(Request(network, domain, nsType, flags, callback))
      }
    
      companion object {
        @Implementation
        @JvmStatic
        fun getInstance(): DnsResolver = Shadow.newInstance(DnsResolver::class.java, arrayOf(), arrayOf())
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 22 20:07:09 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt

        protocols: List<Protocol>,
      ) {
        val names = alpnProtocolNames(protocols)
    
        try {
          val alpnProvider =
            Proxy.newProxyInstance(
              Platform::class.java.classLoader,
              arrayOf(clientProviderClass, serverProviderClass),
              AlpnProvider(names),
            )
          putMethod.invoke(null, sslSocket, alpnProvider)
        } catch (e: InvocationTargetException) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

        val keyManager = keyManagerFactory.keyManagers[0] as X509ExtendedKeyManager
    
        val trustManager = Platform.get().platformTrustManager()
    
        val sslContext = SSLContext.getInstance("TLS")
        sslContext.init(arrayOf(keyManager), arrayOf(trustManager), SecureRandom())
    
        val client =
          OkHttpClient.Builder()
            .sslSocketFactory(sslContext.socketFactory, trustManager)
            .build()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt

                    metadataVersion = annotation.getMemberValue("mv")?.intArrayValue ?: IntArray(0),
                    data1 = annotation.getMemberValue("d1")?.stringArrayValue ?: arrayOf(),
                    data2 = annotation.getMemberValue("d2")?.stringArrayValue ?: arrayOf(),
                    extraString = annotation.getMemberValue("xs")?.stringValue ?: "",
                    packageName = annotation.getMemberValue("pn")?.stringValue ?: "",
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Aug 21 12:41:59 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CommonRequestBodyTest.kt

    import okhttp3.RequestBody.Companion.toRequestBody
    
    class CommonRequestBodyTest {
      @Test
      fun correctContentType() {
        val body = "Body"
        val requestBody = body.toRequestBody(MediaType("text/plain", "text", "plain", arrayOf()))
    
        val contentType = requestBody.contentType()!!
    
        assertThat(contentType.mediaType).isEqualTo("text/plain; charset=utf-8")
        assertThat(contentType.parameter("charset")).isEqualTo("utf-8")
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateInitPluginTemplateVersionFile.kt

    import java.util.Properties
    
    
    @DisableCachingByDefault(because = "Not worth caching")
    abstract class UpdateInitPluginTemplateVersionFile : DefaultTask() {
    
        private
        val devSuffixes = arrayOf(
            "-SNAP\\d+",
            "-SNAPSHOT",
            "-alpha.*\\d+",
            "-beta.*\\d+",
            "-dev-?\\d+",
            "-dev-\\d+-\\d+",
            "-rc-?\\d+",
            "-M.+",
            "-eap-?\\d+"
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:29 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

      fun sslSocketFactory(): SSLSocketFactory = sslContext().socketFactory
    
      fun sslContext(): SSLContext {
        return Platform.get().newSSLContext().apply {
          init(arrayOf<KeyManager>(keyManager), arrayOf<TrustManager>(trustManager), SecureRandom())
        }
      }
    
      class Builder {
        private var heldCertificate: HeldCertificate? = null
        private var intermediates: Array<X509Certificate>? = null
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt

            val parameters = sslSocket.sslParameters
            Log.d("CustomSSLSocketFactory", "old applicationProtocols: $parameters.applicationProtocols")
            parameters.applicationProtocols = arrayOf("x-amzn-http-ca")
            sslSocket.sslParameters = parameters
          }
    
          return sslSocket
        }
      }
    
      var client = OkHttpClient()
    
      @Test
      fun getWithCustomSocketFactory() {
        client =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top