code: public GitRepositoryBuilder credentialProvider(final String username, final String password) {
          if (StringUtils.hasText(username)) {
              this.credentialsProviders.add(new UsernamePasswordCredentialsProvider(username, password));
          }
          return this;
      }
docs: Credential provider for repositories that require access.
  
  @param username the username
  @param password the password
  @return the git repository builder