- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 16 for isExpired (0.08 seconds)
-
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java
assertTrue(auth.isExpired()); // Reset timestamp auth.resetAuthenticationTimestamp(); assertFalse(auth.isExpired()); // Test with no expiration (TTL = 0) auth.setAuthenticationTTL(0); Thread.sleep(100); assertFalse(auth.isExpired()); // Test with negative TTL (no expiration) auth.setAuthenticationTTL(-1); Thread.sleep(100);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 23.3K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java
synchronized (lock) { return cachingHashMap.containsKey(key) && !isExpired(cachingHashMap.get(key)); } } @Override public boolean containsValue(@Nullable Object value) { synchronized (lock) { for (Timestamped<V> val : cachingHashMap.values()) { if (val.getValue().equals(value)) { if (!isExpired(val)) { return true; } } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 12:40:22 GMT 2026 - 21.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/chat/ChatSessionManager.java
if (session == null) { if (logger.isDebugEnabled()) { logger.debug("Session not found. sessionId={}", sessionId); } return null; } if (isExpired(session)) { sessionCache.remove(sessionId); if (logger.isDebugEnabled()) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 07 13:27:59 GMT 2026 - 13.7K bytes - Click Count (0) -
docs/smb3-features/04-directory-leasing-design.md
} finally { lock.readLock().unlock(); } } public boolean isExpired() { return System.currentTimeMillis() - lastUpdateTime > maxAge; } public boolean needsRefresh() { return isExpired() || hasChanges; } public void markComplete() { lock.writeLock().lock(); try {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 36.2K bytes - Click Count (0) -
internal/auth/credentials.go
if !cred.Expiration.IsZero() && !cred.Expiration.Equal(timeSentinel) { s.WriteString("\n") s.WriteString(cred.Expiration.String()) } return s.String() } // IsExpired - returns whether Credential is expired or not. func (cred Credentials) IsExpired() bool { if cred.Expiration.IsZero() || cred.Expiration.Equal(timeSentinel) { return false } return cred.Expiration.Before(time.Now().UTC()) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 11.8K bytes - Click Count (0) -
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; } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 11.4K bytes - Click Count (0) -
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) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 30.3K bytes - Click Count (0) -
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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 12.3K bytes - Click Count (0) -
docs/smb3-features/02-persistent-handles-design.md
HandleType.DURABLE_V2, 1000, // 1 second timeout null ); assertFalse(info.isExpired()); // Wait for expiration Thread.sleep(1500); assertTrue(info.isExpired()); // Persistent handles don't expire HandleInfo persistent = new HandleInfo( "/test/file2.txt",Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 31.6K bytes - Click Count (0) -
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; }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 42K bytes - Click Count (0)