Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 109 for isCompatible (0.15 sec)

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

            CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA.javaName,
          )
        assertThat(tlsSpec.isCompatible(socket)).isTrue()
        socket.enabledCipherSuites =
          arrayOf(
            CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA.javaName,
          )
        assertThat(tlsSpec.isCompatible(socket)).isFalse()
      }
    
      @Test
      fun allEnabledCipherSuites() {
        platform.assumeNotConscrypt()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        BloomFilter<Integer> bf2 = BloomFilter.create(Funnels.integerFunnel(), 10);
    
        assertFalse(bf1.isCompatible(bf2));
        assertThrows(
            IllegalArgumentException.class,
            () -> {
              bf1.putAll(bf2);
            });
    
        assertFalse(bf2.isCompatible(bf1));
        assertThrows(
            IllegalArgumentException.class,
            () -> {
              bf2.putAll(bf1);
            });
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt

       * least one cipher suite enabled.
       *
       * For protocols, at least one of the [required protocols][tlsVersions] must match the socket's
       * enabled protocols.
       */
      fun isCompatible(socket: SSLSocket): Boolean {
        if (!isTls) {
          return false
        }
    
        if (tlsVersionsAsString != null &&
          !tlsVersionsAsString.hasIntersection(socket.enabledProtocols, naturalOrder())
        ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/BloomFilter.java

       *   <li>have the same strategy
       *   <li>have equal funnels
       * </ul>
       *
       * @param that The Bloom filter to check for compatibility.
       * @since 15.0
       */
      public boolean isCompatible(BloomFilter<T> that) {
        checkNotNull(that);
        return this != that
            && this.numHashFunctions == that.numHashFunctions
            && this.bitSize() == that.bitSize()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        connectionSpecs: List<ConnectionSpec>,
        sslSocket: SSLSocket,
      ): ConnectPlan? {
        for (i in connectionSpecIndex + 1 until connectionSpecs.size) {
          if (connectionSpecs[i].isCompatible(sslSocket)) {
            return copy(connectionSpecIndex = i, isTlsFallback = (connectionSpecIndex != -1))
          }
        }
        return null
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_2x.md

        the interceptors on a request-by-request basis.
    
     *  New: `Headers.toMultimap()`.
     *  New: `RequestBody.create(MediaType, ByteString)`.
     *  New: `ConnectionSpec.isCompatible(SSLSocket)`.
     *  New: `Dispatcher.getQueuedCallCount()` and
        `Dispatcher.getRunningCallCount()`. These can be useful in diagnostics.
     *  Fix: OkHttp no longer shares timeouts between pooled connections. This was
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val cipherSuites: List<CipherSuite>? = connectionSpec.cipherSuites
        val supportsTlsExtensions: Boolean = connectionSpec.supportsTlsExtensions
        val compatible: Boolean =
          connectionSpec.isCompatible(
            localhost().sslSocketFactory().createSocket() as SSLSocket,
          )
      }
    
      @Test
      fun connectionSpecBuilder() {
        var builder = ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  8. okhttp/api/okhttp.api

    	public final fun -deprecated_tlsVersions ()Ljava/util/List;
    	public final fun cipherSuites ()Ljava/util/List;
    	public fun equals (Ljava/lang/Object;)Z
    	public fun hashCode ()I
    	public final fun isCompatible (Ljavax/net/ssl/SSLSocket;)Z
    	public final fun isTls ()Z
    	public final fun supportsTlsExtensions ()Z
    	public final fun tlsVersions ()Ljava/util/List;
    	public fun toString ()Ljava/lang/String;
    }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  9. cmd/storage-datatypes.go

    	NoOp    bool   `msg:"np"`
    }
    
    // DiskInfo is an extended type which returns current
    // disk usage per path.
    // The above means that any added/deleted fields are incompatible.
    //
    // The above means that any added/deleted fields are incompatible.
    //
    //msgp:tuple DiskInfo
    type DiskInfo struct {
    	Total      uint64
    	Free       uint64
    	Used       uint64
    	UsedInodes uint64
    	FreeInodes uint64
    	Major      uint32
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  10. doc/next/3-tools.md

    ### Cgo {#cgo}
    
    Cgo currently refuses to compile calls to a C function which has multiple
    incompatible declarations. For instance, if `f` is declared as both `void f(int)`
    and `void f(double)`, cgo will report an error instead of possibly generating an
    incorrect call sequence for `f(0)`. New in this release is a better detector for
    this error condition when the incompatible declarations appear in different
    files. See [#67699](/issue/67699).
    
    ### Vet
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Aug 09 19:57:59 UTC 2024
    - 856 bytes
    - Viewed (0)
Back to top