public static CredentialRetrieverFactory forImage(
      ImageReference imageReference, Consumer<LogEvent> logger) {
    return new CredentialRetrieverFactory(
        imageReference,
        logger,
        DockerCredentialHelper::new,
        GoogleCredentials::getApplicationDefault,
        Collections.emptyMap());
  }
Creates a new {@link CredentialRetrieverFactory} for an image.

@param imageReference the image the credential are for
@param logger a consumer for handling log events
@return a new {@link CredentialRetrieverFactory}
jib-core/src/main/java/com/google/cloud/tools/jib/frontend/CredentialRetrieverFactory.java