agave-apps/clients/AbstractService.java
/**
	 * Verifies the validity of an existing tokey by checking the expiration date.
	 * 
	 * @param token AuthenticationToken
	 * @return true if the token expires in the future. false otherwise.
	 */
Verifies the validity of an existing tokey by checking the expiration date.

@param token AuthenticationToken
@return true if the token expires in the future. false otherwise.
Verifies the validity of an existing tokey by checking the expiration date . @param token AuthenticationToken @return true if the token expires in the future . false otherwise .
public static boolean isTokenValid(AuthenticationToken token)
	{
		if (token == null) {
			return false;
		} else {
			return token.getExpirationDate().after(new Date()) && token.getRemainingUses() > 0;
		}
	}
public static boolean isTokenValid ( AuthenticationToken token ) { if ( token == null ) { return false ; } else { return token . getExpirationDate ( ) . after ( new Date ( ) ) && token . getRemainingUses ( ) > 0 ; } }
Verifies the validity of an existing tokey by checking the expiration date.
Verifies the validity of an existing tokey by checking the expiration date .