Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for IsExpired (0.05 sec)

  1. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

         *
         * @return true if expired
         */
        public boolean isExpired() {
            return System.currentTimeMillis() - lastUpdateTime > maxAge;
        }
    
        /**
         * Check if cache needs refresh
         *
         * @return true if refresh needed
         */
        public boolean needsRefresh() {
            return isExpired() || hasChanges;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. cmd/jwt.go

    					return nil, errAccessKeyDisabled
    				}
    				return nil, errInvalidAccessKeyID
    			}
    			cred := u.Credentials
    			// Expired credentials return error.
    			if cred.IsTemp() && cred.IsExpired() {
    				return nil, errInvalidAccessKeyID
    			}
    			return []byte(cred.SecretKey), nil
    		} // this means claims.AccessKey == rootAccessKey
    		if !globalAPIConfig.permitRootAccess() {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/witness/WitnessRegistration.java

        /**
         * Checks if this registration has expired based on the timeout.
         *
         * @param timeoutMs the timeout in milliseconds
         * @return true if the registration is expired
         */
        public boolean isExpired(long timeoutMs) {
            return System.currentTimeMillis() - lastHeartbeat > timeoutMs;
        }
    
        // Getters and setters
    
        /**
         * Gets the last heartbeat timestamp.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/timer/TimeoutManager.java

                final TimeoutTask task = e.getElement();
                if (task.isCanceled()) {
                    e.remove();
                } else if (!task.isStopped() && task.isExpired()) {
                    expiredTask.add(task);
                    if (!task.isPermanent()) {
                        e.remove();
                    }
                }
            }
            return expiredTask;
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  5. docs/smb3-features/06-witness-protocol-design.md

            return sequenceNumber.incrementAndGet();
        }
        
        public void updateHeartbeat() {
            this.lastHeartbeat = System.currentTimeMillis();
        }
        
        public boolean isExpired(long timeoutMs) {
            return System.currentTimeMillis() - lastHeartbeat > timeoutMs;
        }
        
        // Getters and setters...
        public String getRegistrationId() { return registrationId; }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

        private void cleanupExpiredEntries() {
            List<String> expiredPaths = new ArrayList<>();
    
            for (Map.Entry<String, DirectoryCacheEntry> entry : directoryCache.entrySet()) {
                if (entry.getValue().isExpired()) {
                    expiredPaths.add(entry.getKey());
                }
            }
    
            for (String path : expiredPaths) {
                log.debug("Cleaning up expired directory cache entry: {}", path);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java

            if (handleInfo == null) {
                return CompletableFuture.failedFuture(new IOException("Handle info cannot be null"));
            }
    
            if (handleInfo.isExpired()) {
                return CompletableFuture.failedFuture(new IOException("Handle has expired and cannot be reconnected: " + handleInfo.getPath()));
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/witness/WitnessClient.java

        private void checkHeartbeats() {
            long timeout = context.getConfig().getWitnessHeartbeatTimeout();
    
            for (WitnessRegistration registration : registrations.values()) {
                if (registration.isExpired(timeout)) {
                    log.warn("Witness registration expired: {}", registration.getRegistrationId());
    
                    registration.setState(WitnessRegistrationState.EXPIRED);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            assertTrue(entry.isComplete());
            assertFalse(entry.needsRefresh());
    
            // Wait for expiration
            Thread.sleep(100);
    
            assertTrue(entry.isExpired());
            assertTrue(entry.needsRefresh());
    
            // After expiration, cache should be treated as invalid by manager
            // (In real implementation, expired entries might be cleaned up automatically)
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                throws SmbException {
            checkNotClosed();
    
            // Check if authentication has expired
            if (isExpired()) {
                throw new SmbException("Authentication has expired. Please re-authenticate.");
            }
    
            // Generate session ID for secure key management
            if (this.sessionId == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
Back to top