code: @Override
    public boolean canAuthenticate(String resource) {
      if (resource == null) {
        return false;
      }
  
      ClientCredential credential = getCredentialForResource(resource);
      return credential != null;
    }
docs: Returns {@code true} if the configuration contains an entry for the given resource.