use of com.zeapo.pwdstore.git.config.GitConfigSessionFactory in project Android-Password-Store by zeapo.
the class GitOperation method setAuthentication.
/**
* Sets the authentication using user/pwd scheme
*
* @param username the username
* @param password the password
* @return the current object
*/
GitOperation setAuthentication(String username, String password) {
SshSessionFactory.setInstance(new GitConfigSessionFactory());
this.provider = new UsernamePasswordCredentialsProvider(username, password);
return this;
}
Aggregations