Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for javaName (0.09 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt

      }
    
      @ParameterizedTest(name = "{displayName}({arguments})")
      @ValueSource(strings = ["TLSv1.2", "TLSv1.3"])
      @Flaky
      fun testSessionReuse(tlsVersion: String) {
        if (tlsVersion == TlsVersion.TLS_1_3.javaName) {
          assumeTrue(PlatformVersion.majorVersion != 8)
        }
    
        val sessionIds = mutableListOf<String>()
    
        enableTls()
    
        val tlsVersion = TlsVersion.forJavaName(tlsVersion)
        val spec =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

      }
    
      @Test
      fun cipherSuite() {
        var cipherSuite: CipherSuite = CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
        cipherSuite = CipherSuite.forJavaName("")
        val javaName: String = cipherSuite.javaName
      }
    
      @Test
      fun connection() {
        val connection =
          object : Connection {
            override fun route(): Route = TODO()
    
            override fun socket(): Socket = TODO()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt

        assertThat(cache.requestCount()).isEqualTo(2)
        assertThat(cache.networkCount()).isEqualTo(1)
        assertThat(cache.hitCount()).isEqualTo(1)
    
        assertThat(response.handshake!!.cipherSuite.javaName).startsWith("SLT_")
      }
    
      @Test
      fun truncatedMetadataEntry() {
        val response =
          testCorruptingCache {
            corruptMetadata {
              // truncate metadata to 1/4 of length
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/CustomCipherSuites.java

              + Arrays.toString(trustManagers));
        }
        return (X509TrustManager) trustManagers[0];
      }
    
      private String[] javaNames(List<CipherSuite> cipherSuites) {
        String[] result = new String[cipherSuites.size()];
        for (int i = 0; i < result.length; i++) {
          result[i] = cipherSuites.get(i).javaName();
        }
        return result;
      }
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Mar 14 21:57:42 UTC 2019
    - 6.5K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionSpec.kt

          }
    
        fun cipherSuites(vararg cipherSuites: CipherSuite): Builder =
          apply {
            require(tls) { "no cipher suites for cleartext connections" }
            val strings = cipherSuites.map { it.javaName }.toTypedArray()
            return cipherSuites(*strings)
          }
    
        fun cipherSuites(vararg cipherSuites: String) =
          apply {
            require(tls) { "no cipher suites for cleartext connections" }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

            if (url.isHttps) {
              sink.writeByte('\n'.code)
              sink.writeUtf8(handshake!!.cipherSuite.javaName).writeByte('\n'.code)
              writeCertList(sink, handshake.peerCertificates)
              writeCertList(sink, handshake.localCertificates)
              sink.writeUtf8(handshake.tlsVersion.javaName).writeByte('\n'.code)
            }
          }
        }
    
        @Throws(IOException::class)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  7. okhttp/api/jvm/okhttp.api

    	public synthetic fun <init> (Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
    	public static final fun forJavaName (Ljava/lang/String;)Lokhttp3/CipherSuite;
    	public final fun javaName ()Ljava/lang/String;
    	public fun toString ()Ljava/lang/String;
    }
    
    public final class okhttp3/CipherSuite$Companion {
    	public final fun forJavaName (Ljava/lang/String;)Lokhttp3/CipherSuite;
    }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  8. okhttp/api/android/okhttp.api

    	public synthetic fun <init> (Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
    	public static final fun forJavaName (Ljava/lang/String;)Lokhttp3/CipherSuite;
    	public final fun javaName ()Ljava/lang/String;
    	public fun toString ()Ljava/lang/String;
    }
    
    public final class okhttp3/CipherSuite$Companion {
    	public final fun forJavaName (Ljava/lang/String;)Lokhttp3/CipherSuite;
    }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

      ): SSLSocketFactory {
        return object : DelegatingSSLSocketFactory(sslSocketFactory) {
          override fun configureSocket(sslSocket: SSLSocket): SSLSocket {
            sslSocket.enabledCipherSuites = arrayOf(cipherSuite.javaName)
            return super.configureSocket(sslSocket)
          }
        }
      }
    
      private class RecordingSSLSocketFactory(
        delegate: SSLSocketFactory,
      ) : DelegatingSSLSocketFactory(delegate) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  10. mvnw

          if $darwin; then
            javaHome="$(dirname "$javaExecutable")"
            javaExecutable="$(cd "$javaHome" && pwd -P)/javac"
          else
            javaExecutable="$(readlink -f "$javaExecutable")"
          fi
          javaHome="$(dirname "$javaExecutable")"
          javaHome=$(expr "$javaHome" : '\(.*\)/bin')
          JAVA_HOME="$javaHome"
          export JAVA_HOME
        fi
      fi
    fi
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Oct 14 22:24:15 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top