code: boolean checkCredentials() {
  
  
  		if(!httpPut)
  		{
  			if (token.equals(CONFIG_TOKEN) || token.equals(""))
  			{
  				//Check if set in an environment variable, used with PaaS providers
  				String envToken = getEnvVar( CONFIG_TOKEN);
  
  				if (envToken == ""){
  					dbg(INVALID_TOKEN);
  					return false;
  				}
  
  				this.setToken(envToken);
  			}
  
  			return checkValidUUID(this.getToken());
  		}else{
  			if ( !checkValidUUID(this.getKey()) || this.getLocation().equals(""))
  				return false;
  
  			return true;
  		}
  	}
docs: Checks that key and location are set.