public Factory setCredential(@Nullable Credential credential) {
      this.credential = credential;
      return this;
    }
Sets the authentication credentials to use to authenticate with the registry.

@param credential the {@link Credential} to access the registry/repository
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/registry/RegistryClient.java