Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for notAfter (0.09 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

        private fun validity(): Validity {
          val notBefore = if (notBefore != -1L) notBefore else System.currentTimeMillis()
          val notAfter = if (notAfter != -1L) notAfter else notBefore + DEFAULT_DURATION_MILLIS
          return Validity(
            notBefore = notBefore,
            notAfter = notAfter,
          )
        }
    
        private fun extensions(): MutableList<Extension> {
          val result = mutableListOf<Extension>()
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

        val deltaMillis = 1000.0
        val durationMillis = TimeUnit.MINUTES.toMillis((60 * 24).toLong())
        assertThat(certificate.notBefore.time.toDouble())
          .isCloseTo(now.toDouble(), deltaMillis)
        assertThat(certificate.notAfter.time.toDouble())
          .isCloseTo(now.toDouble() + durationMillis, deltaMillis)
      }
    
      @Test
      fun customInterval() {
        // 5 seconds starting on 1970-01-01.
        val heldCertificate =
          HeldCertificate
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt

      val value: Any?,
    )
    
    internal data class Validity(
      val notBefore: Long,
      val notAfter: Long,
    ) {
      // Avoid Long.hashCode(long) which isn't available on Android 5.
      override fun hashCode(): Int {
        var result = 0
        result = 31 * result + notBefore.toInt()
        result = 31 * result + notAfter.toInt()
        return result
      }
    }
    
    internal data class SubjectPublicKeyInfo(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

      /**
       * ```
       * Validity ::= SEQUENCE {
       *   notBefore      Time,
       *   notAfter       Time
       * }
       * ```
       */
      private val validity: BasicDerAdapter<Validity> =
        Adapters.sequence(
          "Validity",
          time,
          time,
          decompose = {
            listOf(
              it.notBefore,
              it.notAfter,
            )
          },
          construct = {
            Validity(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  5. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

                        value = "cash.app",
                      ),
                    ),
                  ),
                validity =
                  Validity(
                    notBefore = 0L,
                    notAfter = 1000L,
                  ),
                subject =
                  listOf(
                    listOf(
                      AttributeTypeAndValue(
                        type = COMMON_NAME,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 43.9K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixTesting.jvm.kt

    actual class PublicSuffixTestRunner(
      klass: Class<*>,
    ) : Runner() {
      private val delegate = JUnit4(klass)
    
      override fun getDescription() = delegate.description
    
      override fun run(notifier: RunNotifier?) = delegate.run(notifier)
    
      override fun testCount() = delegate.testCount()
    }
    
    actual fun beforePublicSuffixTest() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri May 23 16:58:05 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

             */
            public void setNotificationFuture(CompletableFuture<Void> future) {
                this.notificationFuture = future;
            }
        }
    
        /**
         * Create a new directory change notifier
         *
         * @param manager directory lease manager
         */
        public DirectoryChangeNotifier(DirectoryLeaseManager manager) {
            this.leaseManager = manager;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  8. docs/smb3-features/04-directory-leasing-design.md

                public boolean isDirectory() { return fileInfo.isDirectory(); }
                // ... other attribute methods
            });
            
            return file;
        }
    }
    ```
    
    ### 4.4 Directory Change Notifier
    ```java
    package jcifs.internal.smb2.lease;
    
    import jcifs.internal.smb2.ServerMessageBlock2;
    import java.util.concurrent.ConcurrentHashMap;
    
    public class DirectoryChangeNotifier {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
Back to top