public DefaultCredentialRetrievers setInferredCredential(
      Credential inferredCredential, String credentialSource) {
    inferredCredentialRetriever =
        credentialRetrieverFactory.known(inferredCredential, credentialSource);
    return this;
  }
Sets the inferred {@link Credential} to use in the default credential retrievers.

@param inferredCredential the inferred credential
@param credentialSource the source of the inferred credential (for logging)
@return this
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/DefaultCredentialRetrievers.java