public class Authentication
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
passphrase |
private java.lang.String |
password
Password associated with the login
|
private java.lang.String |
privateKey |
private java.lang.String |
username
Username used to login to the host
|
Constructor and Description |
---|
Authentication(java.lang.String userName,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPassphrase()
Get the passphrase of the private key file.
|
java.lang.String |
getPassword()
Get the user's password which is used when connecting to the repository.
|
java.lang.String |
getPrivateKey()
Get the absolute path to the private key file.
|
java.lang.String |
getUsername()
Get the username used to access the repository.
|
void |
setPassphrase(java.lang.String passphrase)
Set the passphrase of the private key file.
|
void |
setPassword(java.lang.String password)
Set the user's password which is used when connecting to the repository.
|
void |
setPrivateKey(java.lang.String privateKey)
Set the absolute path to private key file.
|
void |
setUsername(java.lang.String userName)
Set username used to access the repository.
|
private java.lang.String privateKey
private java.lang.String passphrase
private java.lang.String username
private java.lang.String password
public Authentication(java.lang.String userName, java.lang.String password)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- password of the userpublic java.lang.String getUsername()
public void setUsername(java.lang.String userName)
userName
- the username used to access repositorypublic java.lang.String getPassphrase()
public void setPassphrase(java.lang.String passphrase)
passphrase
- passphrase of the private key filepublic java.lang.String getPrivateKey()
public void setPrivateKey(java.lang.String privateKey)
privateKey
- path to private key in local file system