Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for Cleaner (0.03 sec)

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

            .Builder()
            .serialNumber(1L)
            .build()
        val cleaner = get(root.certificate)
        assertThat(cleaner.clean(list(root), "hostname")).isEqualTo(list(root))
      }
    
      @Test
      fun normalizeUnknownSelfSignedCertificate() {
        val root =
          HeldCertificate
            .Builder()
            .serialNumber(1L)
            .build()
        val cleaner = get()
        assertFailsWith<SSLPeerUnverifiedException> {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 9.5K bytes
    - Viewed (1)
  2. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

        assertThat(serverSocket.isClosed()).isTrue();
      }
    
      @SuppressWarnings("Java8ApiChecker")
      static class MyServerExampleWithCleaner implements AutoCloseable {
        private static final Cleaner cleaner = Cleaner.create();
    
        private static Runnable closeServerSocketRunnable(
            ServerSocket serverSocket, AtomicBoolean cleanerRan) {
          return () -> {
            try {
              serverSocket.close();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/FinalizableReferenceQueue.java

     *     serverSocket.close();
     *   }
     * }
     * }
     *
     * <p id="cleaner">Here is how you might achieve the same thing using {@link java.lang.ref.Cleaner
     * Cleaner}, if you are using a Java version where that is available:
     *
     * {@snippet :
     * public class MyServer implements Closeable {
     *   private static final Cleaner cleaner = Cleaner.create();
     *   // You might also share this between several objects.
     *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/CertificateChainCleaner.kt

     * certificate is signed by the certificate that follows, and the last certificate is a trusted CA
     * certificate.
     *
     * Use of the chain cleaner is necessary to omit unexpected certificates that aren't relevant to
     * the TLS handshake and to extract the trusted CA certificate for the benefit of certificate
     * pinning.
     */
    abstract class CertificateChainCleaner {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

    import java.security.cert.Certificate
    import java.security.cert.X509Certificate
    import java.util.ArrayDeque
    import java.util.Deque
    import javax.net.ssl.SSLPeerUnverifiedException
    
    /**
     * A certificate chain cleaner that uses a set of trusted root certificates to build the trusted
     * chain. This class duplicates the clean chain building performed during the TLS handshake. We
     * prefer other mechanisms where they exist, such as with
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/hash/AbstractCompositeHashFunction.java

       * has consumed the entire input and they are ready to output a {@code HashCode}. The order of the
       * hashers are the same order as the functions given to the constructor.
       */
      // this could be cleaner if it passed HashCode[], but that would create yet another array...
      /* protected */ abstract HashCode makeHash(Hasher[] hashers);
    
      @Override
      public Hasher newHasher() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

          }
        }
      }
    
      /**
       * Not checking the CA bit created a vulnerability in old OkHttp releases. It is exploited by
       * 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.
       *
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 24.3K bytes
    - Viewed (2)
  8. guava/src/com/google/common/util/concurrent/MoreExecutors.java

                      // is undefined in shutdown hooks.
                      // This is because the logging code installs a shutdown hook of its
                      // own. See Cleaner class inside {@link LogManager}.
                      service.awaitTermination(terminationTimeout, timeUnit);
                    } catch (InterruptedException ignored) {
                      // We're shutting down anyway, so just ignore.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  9. CHANGELOG/CHANGELOG-1.27.md

    - Migrated the bootstrap signer controller and the token cleaner controller (within `kube-controller-manager`) to use [contextual logging](https://k8s.io/docs/concepts/cluster-administration/system-logs/#contextual-logging). ([#113464](https://github.com/kubernetes/kubernetes/pull/113464), [@mengjiao-liu](http...
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Wed Jul 17 07:48:22 UTC 2024
    - 466.3K bytes
    - Viewed (2)
  10. CHANGELOG/CHANGELOG-1.28.md

    - The helping message of commands which have sub-commands is now clearer and more instructive. It will show the full command instead of `kubectl <command> --help ...`
      
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Fri Sep 05 03:47:18 UTC 2025
    - 456.9K bytes
    - Viewed (1)
Back to top