org.apache.maven.wagon.authentication

Class AuthenticationInfo

public class AuthenticationInfo extends Object implements Serializable

This class holds the set of properties used when instance of the Wagon will use during login opreration.

Version: $Id: AuthenticationInfo.java 162476 2005-04-19 02:49:45Z brett $

Author: Michal Maczka

Field Summary
Stringpassphrase
Passphrase of the user's private key file
Stringpassword
Password associated with the login
StringprivateKey
The absolute path to private key file
StringuserName
Username used to login to the host
Method Summary
StringgetPassphrase()
Get the passphrase of the private key file.
StringgetPassword()
Get the user's password which is used when connecting to the repository.
StringgetPrivateKey()
Get the absolute path to the private key file.
StringgetUserName()
Get the username used to access the repository.
voidsetPassphrase(String passphrase)
Set the passphrase of the private key file.
voidsetPassword(String password)
Set the user's password which is used when connecting to the repository.
voidsetPrivateKey(String privateKey)
Set the absolute path to private key file.
voidsetUserName(String userName)
Set username used to access the repository.

Field Detail

passphrase

private String passphrase
Passphrase of the user's private key file

password

private String password
Password associated with the login

privateKey

private String privateKey
The absolute path to private key file

userName

private String userName
Username used to login to the host

Method Detail

getPassphrase

public 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

getPassword

public String getPassword()
Get the user's password which is used when connecting to the repository.

Returns: password of user

getPrivateKey

public String getPrivateKey()
Get the absolute path to the private key file.

Returns: absolute path to private key

getUserName

public String getUserName()
Get the username used to access the repository.

Returns: username at repository

setPassphrase

public void setPassphrase(String passphrase)
Set the passphrase of the private key file.

Parameters: passphrase passphrase of the private key file

setPassword

public void setPassword(String password)
Set the user's password which is used when connecting to the repository.

Parameters: password password of the user

setPrivateKey

public void setPrivateKey(String privateKey)
Set the absolute path to private key file.

Parameters: privateKey path to private key in local file system

setUserName

public void setUserName(String userName)
Set username used to access the repository.

Parameters: userName the username used to access repository