Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for IsExpired (0.05 seconds)

  1. 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: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.3K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

         */
        public HandleInfo getHandleForReconnect(String path) {
            lock.readLock().lock();
            try {
                HandleInfo info = handles.get(path);
                if (info != null && !info.isExpired()) {
                    info.setReconnecting(true);
                    info.updateAccessTime();
                    log.debug("Found handle for reconnect: {}", path);
                    return info;
                }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 24 00:49:49 GMT 2025
    - 13K bytes
    - Click Count (0)
  3. 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 Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  4. 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() {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  5. 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.
         *
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Mon Aug 25 14:34:10 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  6. 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);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  7. guava/src/com/google/common/cache/LocalCache.java

        V value = entry.getValueReference().get();
        if (value == null) {
          return null;
        }
    
        if (isExpired(entry, now)) {
          return null;
        }
        return value;
      }
    
      // expiration
    
      /** Returns true if the entry has expired. */
      boolean isExpired(ReferenceEntry<K, V> entry, long now) {
        checkNotNull(entry);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Sep 11 19:35:11 GMT 2025
    - 148.9K bytes
    - Click Count (0)
  8. 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: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30.3K bytes
    - Click Count (0)
  9. cmd/iam-etcd-store.go

    	return ies.addUser(ctx, user, userType, u, m)
    }
    
    func (ies *IAMEtcdStore) addUser(ctx context.Context, user string, userType IAMUserType, u UserIdentity, m map[string]UserIdentity) error {
    	if u.Credentials.IsExpired() {
    		// Delete expired identity.
    		deleteKeyEtcd(ctx, ies.client, getUserIdentityPath(user, userType))
    		deleteKeyEtcd(ctx, ies.client, getMappedPolicyPath(user, userType, false))
    		return nil
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  10. cmd/auth-handler.go

    		// validate token for temporary credentials only.
    		return nil, ErrInvalidToken
    	}
    
    	// Expired credentials must return error right away.
    	if cred.IsTemp() && cred.IsExpired() {
    		return nil, toAPIErrorCode(r.Context(), errInvalidAccessKeyID)
    	}
    	secret := globalActiveCred.SecretKey
    	if globalSiteReplicationSys.isEnabled() && cred.AccessKey != siteReplicatorSvcAcc {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 25.4K bytes
    - Click Count (0)
Back to Top