Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for IsExpired (0.06 sec)

  1. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

      @Override
      public boolean containsKey(Object key) {
        return cachingHashMap.containsKey(key) && !isExpired(cachingHashMap.get(key));
      }
    
      @Override
      public boolean containsValue(Object value) {
        for (Timestamped<V> val : cachingHashMap.values()) {
          if (val.getValue().equals(value)) {
            if (!isExpired(val)) {
              return true;
            }
          }
        }
        return false;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  2. 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())
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 28 17:14:16 UTC 2024
    - 12K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/timer/TimeoutTask.java

            this.permanent = permanent;
            this.startTime = System.currentTimeMillis();
        }
    
        /**
         * 期限切れかどうかを返します。
         *
         * @return 期限切れかどうか
         */
        public boolean isExpired() {
            return System.currentTimeMillis() >= startTime + timeoutMillis;
        }
    
        /**
         * 永続的かどうかを返します。
         *
         * @return 永続的かどうか
         */
        public boolean isPermanent() {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.7K bytes
    - Viewed (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() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 22 07:04:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. 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 Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. 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);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  7. 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
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 14K bytes
    - Viewed (0)
  8. 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 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  9. cmd/iam-object-store.go

    	err := iamOS.loadIAMConfig(ctx, &u, getUserIdentityPath(user, userType))
    	if err != nil {
    		if err == errConfigNotFound {
    			return u, errNoSuchUser
    		}
    		return u, err
    	}
    
    	if u.Credentials.IsExpired() {
    		// Delete expired identity - ignoring errors here.
    		iamOS.deleteIAMConfig(ctx, getUserIdentityPath(user, userType))
    		iamOS.deleteIAMConfig(ctx, getMappedPolicyPath(user, userType, false))
    		return u, errNoSuchUser
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  10. cmd/iam.go

    	// External (actual) LDAP DN to internal normalized representation
    	actualDNToParentUserMap := make(map[string]string)
    	for _, cred := range allCreds {
    		// Expired credentials don't need parent user updates.
    		if cred.IsExpired() {
    			continue
    		}
    
    		if !sys.LDAPConfig.IsLDAPUserDN(cred.ParentUser) {
    			continue
    		}
    
    		// Check if this is the first time we are
    		// encountering this LDAP user.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
Back to top