Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for spec (0.2 sec)

  1. docs/features/https.md

    You can build your own connection spec with a custom set of TLS versions and cipher suites. For example, this configuration is limited to three highly-regarded cipher suites. Its drawback is that it requires Android 5.0+ and a similarly current webserver.
    
    ```java
    ConnectionSpec spec = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
        .tlsVersions(TlsVersion.TLS_1_2)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/SessionReuseTest.kt

          assumeTrue(PlatformVersion.majorVersion != 8)
        }
    
        val sessionIds = mutableListOf<String>()
    
        enableTls()
    
        val tlsVersion = TlsVersion.forJavaName(tlsVersion)
        val spec =
          ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
            .tlsVersions(tlsVersion)
            .build()
    
        var reuseSession = false
    
        val sslContext = handshakeCertificates.sslContext()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

    import assertk.assertions.isEqualTo
    import assertk.assertions.isNull
    import assertk.assertions.matches
    import java.math.BigInteger
    import java.security.KeyFactory
    import java.security.spec.PKCS8EncodedKeySpec
    import java.security.spec.X509EncodedKeySpec
    import java.util.concurrent.TimeUnit
    import okhttp3.testing.PlatformRule
    import okhttp3.tls.HeldCertificate.Companion.decode
    import okio.ByteString.Companion.decodeBase64
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt

     * connection.
     *
     * The TLS versions configured in a connection spec are only be used if they are also enabled in the
     * SSL socket. For example, if an SSL socket does not have TLS 1.3 enabled, it will not be used even
     * if it is present on the connection spec. The same policy also applies to cipher suites.
     *
    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)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

     *
     *  * DER: Distinguished Encoding Rules. This further constrains ASN.1 for deterministic encoding.
     *  * BER: Basic Encoding Rules.
     *
     * This class was implemented according to the [X.690 spec][[x690]], and under the advice of
     * [Lets Encrypt's ASN.1 and DER][asn1_and_der] guide.
     *
     * [x690]: https://www.itu.int/rec/T-REC-X.690
     * [asn1_and_der]: https://letsencrypt.org/docs/a-warm-welcome-to-asn1-and-der/
     */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

         * rules vary per-component: for example, '?' may be identity-encoded in a fragment, but must be
         * percent-encoded in a path.
         *
         * See https://url.spec.whatwg.org/#percent-encoded-bytes
         */
        fun newInstance(): UrlComponentEncodingTester {
          return UrlComponentEncodingTester()
            .allAscii(Encoding.IDENTITY)
            .nonPrintableAscii(Encoding.PERCENT)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  7. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

    /**
     * [DNS over HTTPS implementation][doh_spec].
     *
     * > A DNS API client encodes a single DNS query into an HTTP request
     * > using either the HTTP GET or POST method and the other requirements
     * > of this section.  The DNS API server defines the URI used by the
     * > request through the use of a URI Template.
     *
     * [doh_spec]: https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-13
     */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/TestTls13Request.kt

        }
      } finally {
        client.dispatcher.executorService.shutdownNow()
        client.connectionPool.evictAll()
      }
    }
    
    private fun buildClient(vararg specs: ConnectionSpec): OkHttpClient {
      return OkHttpClient.Builder()
        .connectionSpecs(listOf(*specs))
        .build()
    }
    
    private fun sendRequest(
      client: OkHttpClient,
      url: String,
    ) {
      System.out.printf("%-40s ", url)
      System.out.flush()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

        // we rule out characters that would cause problems in host headers.
        if (c <= '\u001f' || c >= '\u007f') {
          return true
        }
        // Check for the characters mentioned in the WHATWG Host parsing spec:
        // U+0000, U+0009, U+000A, U+000D, U+0020, "#", "%", "/", ":", "?", "@", "[", "\", and "]"
        // (excluding the characters covered above).
        if (" #%/:?@[\\]".indexOf(c) != -1) {
          return true
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Protocol.kt

       */
      HTTP_1_0("http/1.0"),
    
      /**
       * A plaintext framing that includes persistent connections.
       *
       * This version of OkHttp implements [RFC 7230][rfc_7230], and tracks revisions to that spec.
       *
       * [rfc_7230]: https://tools.ietf.org/html/rfc7230
       */
      HTTP_1_1("http/1.1"),
    
      /**
       * Chromium's binary-framed protocol that includes header compression, multiplexing multiple
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:33 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top