Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 149 for currentTimeMillis (0.17 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt

         * [setCookie] is not a well-formed cookie.
         */
        @JvmStatic
        fun parse(
          url: HttpUrl,
          setCookie: String,
        ): Cookie? = parse(System.currentTimeMillis(), url, setCookie)
    
        internal fun parse(
          currentTimeMillis: Long,
          url: HttpUrl,
          setCookie: String,
        ): Cookie? {
          val cookiePairEnd = setCookie.delimiterOffset(';')
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/net/UuidUtil.java

         * @return the UUID string
         */
        public static String create() {
            final StringBuilder buf = new StringBuilder(BASE.length() * 2);
            buf.append(BASE);
            final int lowTime = (int) (System.currentTimeMillis() >> 32);
            StringUtil.appendHex(buf, lowTime);
            StringUtil.appendHex(buf, RANDOM.nextInt());
            return buf.toString();
        }
    
        private static byte[] getAddress() {
            try {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/MavenArtifact.java

                this.repositoryUrl = repositoryUrl + '/';
            } else {
                this.repositoryUrl = repositoryUrl;
            }
            this.resource = resource;
    
            this.transferStartTime = System.currentTimeMillis();
        }
    
        @Override
        public String getRepositoryUrl() {
            return repositoryUrl;
        }
    
        @Override
        public String getName() {
            String name = resource.getName();
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/SmbException.java

            super(message);
            this.errorCode = errorCode;
            this.severity = severity;
            this.category = category;
            this.context = new HashMap<>();
            this.timestamp = System.currentTimeMillis();
        }
    
        /**
         * Creates an SMB exception with cause
         *
         * @param message the error message
         * @param errorCode the SMB error code
         * @param severity the error severity
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                // Reserved (4 bytes)
                SMBUtil.writeInt4(0, buffer, bufferIndex + 4);
                // Creation Time (8 bytes)
                long creationTime = System.currentTimeMillis() * 10000L + 116444736000000000L;
                SMBUtil.writeInt8(creationTime, buffer, bufferIndex + 8);
                // Last Access Time (8 bytes)
                long lastAccessTime = creationTime + 1000000L;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/DfsTest.java

        @Test
        void testCacheEntry() {
            // Test with a specific TTL
            long ttl = 600; // 10 minutes
            Dfs.CacheEntry cacheEntry = new Dfs.CacheEntry(ttl);
            long expectedExpiration = System.currentTimeMillis() + ttl * 1000L;
            assertTrue(cacheEntry.expiration >= expectedExpiration - 100 && cacheEntry.expiration <= expectedExpiration + 100);
            assertNotNull(cacheEntry.map);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/DfsReferralDataTest.java

            verify(mockReferralData).getPath();
        }
    
        @Test
        @DisplayName("Should get expiration")
        void testGetExpiration() {
            // Given
            long expiration = System.currentTimeMillis();
            when(mockReferralData.getExpiration()).thenReturn(expiration);
    
            // When
            long result = mockReferralData.getExpiration();
    
            // Then
            assertEquals(expiration, result);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

        private long authenticationTTL = 3600000L; // 1 hour default
        /** Timestamp when the authentication was created */
        private long authenticationTimestamp = System.currentTimeMillis();
        /** Flag to track if this authenticator has been closed */
        private volatile boolean closed = false;
    
        /**
         * Construct anonymous credentials
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/FaultTolerantClientTest.java

             */
            @Override
            public ResponseData execute(final RequestData request) {
                final long now = SystemUtil.currentTimeMillis();
                if (now - previousTime < interval) {
                    throw new IllegalStateException();
                }
                previousTime = now;
    
                count++;
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

        init {
          ecdsa256()
        }
    
        /**
         * Sets the certificate to be valid in ```[notBefore..notAfter]```. Both endpoints are specified
         * in the format of [System.currentTimeMillis]. Specify -1L for both values to use the default
         * interval, 24 hours starting when the certificate is created.
         */
        fun validityInterval(
          notBefore: Long,
          notAfter: Long,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 21.6K bytes
    - Viewed (0)
Back to top