Interface GitAuthHelper


public interface GitAuthHelper
Helper for adding authentication configuration to a git command
Since:
6.7
  • Method Details

    • configure

      @Nonnull <T extends GitCommandBuilderSupport<T>> GitCommandBuilderSupport<T> configure(@Nonnull GitCommandBuilderSupport<T> builder, @Nullable String username, @Nullable String password, @Nullable Path keyFile)
      Configured the supplied GitCommandBuilderSupport to make authenticated requests. This will prevent the Git command from prompting for a password. This is useful for making requests to remote repositories.
      Parameters:
      builder - adds authentication information to this builder
      username - username used for authentication
      password - password used for authentication
      keyFile - path to private key used for authentication
      Returns:
      commandBuilder configured with authentication credentials