Class AuthenticationInfo
- java.lang.Object
-
- org.apache.maven.wagon.authentication.AuthenticationInfo
-
- All Implemented Interfaces:
java.io.Serializable
public class AuthenticationInfo extends java.lang.Object implements java.io.SerializableThis class holds the set of properties used when instance of theWagonwill use during login operation.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringpassphrasePassphrase of the user's private key fileprivate java.lang.StringpasswordPassword associated with the loginprivate java.lang.StringprivateKeyThe absolute path to private key fileprivate java.lang.StringuserNameUsername used to login to the host
-
Constructor Summary
Constructors Constructor Description AuthenticationInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPassphrase()Get the passphrase of the private key file.java.lang.StringgetPassword()Get the user's password which is used when connecting to the repository.java.lang.StringgetPrivateKey()Get the absolute path to the private key file.java.lang.StringgetUserName()Get the username used to access the repository.voidsetPassphrase(java.lang.String passphrase)Set the passphrase of the private key file.voidsetPassword(java.lang.String password)Set the user's password which is used when connecting to the repository.voidsetPrivateKey(java.lang.String privateKey)Set the absolute path to private key file.voidsetUserName(java.lang.String userName)Set username used to access the repository.
-
-
-
Field Detail
-
userName
private java.lang.String userName
Username used to login to the host
-
password
private java.lang.String password
Password associated with the login
-
passphrase
private java.lang.String passphrase
Passphrase of the user's private key file
-
privateKey
private java.lang.String privateKey
The absolute path to private key file
-
-
Method Detail
-
getPassphrase
public java.lang.String getPassphrase()
Get the passphrase of the private key file. The passphrase is used only when host/protocol supports authentication via exchange of private/public keys and private key was used for authentication.- Returns:
- passphrase of the private key file
-
setPassphrase
public void setPassphrase(java.lang.String passphrase)
Set the passphrase of the private key file.- Parameters:
passphrase- passphrase of the private key file
-
getPrivateKey
public java.lang.String getPrivateKey()
Get the absolute path to the private key file.- Returns:
- absolute path to private key
-
setPrivateKey
public void setPrivateKey(java.lang.String privateKey)
Set the absolute path to private key file.- Parameters:
privateKey- path to private key in local file system
-
getPassword
public java.lang.String getPassword()
Get the user's password which is used when connecting to the repository.- Returns:
- password of user
-
setPassword
public void setPassword(java.lang.String password)
Set the user's password which is used when connecting to the repository.- Parameters:
password- password of the user
-
getUserName
public java.lang.String getUserName()
Get the username used to access the repository.- Returns:
- username at repository
-
setUserName
public void setUserName(java.lang.String userName)
Set username used to access the repository.- Parameters:
userName- the username used to access repository
-
-