Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for pins (0.04 sec)

  1. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

         */
        fun add(
          pattern: String,
          vararg pins: String,
        ) = apply {
          for (pin in pins) {
            this.pins.add(Pin(pattern, pin))
          }
        }
    
        fun build(): CertificatePinner = CertificatePinner(pins.toSet())
      }
    
      companion object {
        @JvmField
        val DEFAULT = Builder().build()
    
        @JvmStatic
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CertificatePinnerTest.kt

        Assertions.assertTrue(pin.matchesCertificate(certA1.certificate))
        Assertions.assertFalse(pin.matchesCertificate(certB1.certificate))
      }
    
      @Test
      fun testMatchesSha1() {
        val pin = CertificatePinner.Pin("example.com", certC1Sha1Pin)
        Assertions.assertTrue(pin.matchesCertificate(certC1.certificate))
        Assertions.assertFalse(pin.matchesCertificate(certB1.certificate))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CertificatePinnerKotlinTest.kt

        assertFalse(pin.matchesHostname("www.example.com"))
      }
    
      @Test fun testMatchesSha256() {
        val pin = Pin("example.com", certA1Sha256Pin)
        assertTrue(pin.matchesCertificate(certA1.certificate))
        assertFalse(pin.matchesCertificate(certB1.certificate))
      }
    
      @Test fun testMatchesSha1() {
        val pin = Pin("example.com", certC1Sha1Pin)
        assertTrue(pin.matchesCertificate(certC1.certificate))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/net/HttpHeaders.java

       * The HTTP <a href="http://tools.ietf.org/html/draft-evans-palmer-key-pinning">{@code
       * Public-Key-Pins}</a> header field name.
       *
       * @since 15.0
       */
      public static final String PUBLIC_KEY_PINS = "Public-Key-Pins";
      /**
       * The HTTP <a href="http://tools.ietf.org/html/draft-evans-palmer-key-pinning">{@code
       * Public-Key-Pins-Report-Only}</a> header field name.
       *
       * @since 15.0
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 01 19:08:38 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

          val response = execute(url)
          response.close()
        }
      }
    
      /** Can still coalesce when pinning is used if pins match.  */
      @Test
      fun coalescesWhenCertificatePinsMatch() {
        val pinner =
          CertificatePinner.Builder()
            .add("san.com", pin(certificate.certificate))
            .build()
        client = client.newBuilder().certificatePinner(pinner).build()
        server.enqueue(MockResponse())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

       * triggering different chains to be discovered by the TLS engine and our chain cleaner. In this
       * attack there's several different chains.
       *
       *
       * The victim's gets a non-CA certificate signed by a CA, and pins the CA root and/or
       * intermediate. This is business as usual.
       *
       * ```
       *   pinnedRoot (trusted by CertificatePinner)
       *     -> pinnedIntermediate (trusted by CertificatePinner)
       *       -> realVictim
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_4x.md

        `java.net.Authenticator`. This obsoletes `JavaNetAuthenticator` in the `okhttp-urlconnection`
        module.
    
     *  New: `CertificatePinner` now offers an API for inspecting the configured pins.
    
     *  Upgrade: [Okio 2.6.0][okio_2_6_0].
    
        ```kotlin
        implementation("com.squareup.okio:okio:2.6.0")
        ```
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_experimental.h

                                int num_handles, TF_Status* s,
                                void* device_info) = nullptr;
    
      // Pins the op to `device` based on inputs to `op`. Returns true
      // signifying to pin to the current custom device. Returns false
      // to pin to the physical device.
      //
      // This function is guaranteed to be called only when all of the custom-device
      // inputs are on this device.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_3x.md

        Previously if you configured a ping interval that would cause OkHttp to send
        pings, but it did not track whether the reply pongs were received. With this
        update OkHttp requires that every ping receive a response: if it does not
        the connection will be closed and the listener's `onFailure()` method will
        be called.
    
        Web sockets have always been had pings, but pings on HTTP/2 connections is
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      private var failed = false
    
      /** Total number of pings sent by this web socket. */
      private var sentPingCount = 0
    
      /** Total number of pings received by this web socket. */
      private var receivedPingCount = 0
    
      /** Total number of pongs received by this web socket. */
      private var receivedPongCount = 0
    
      /** True if we have sent a ping that is still awaiting a reply. */
      private var awaitingPong = false
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 22.1K bytes
    - Viewed (0)
Back to top