Class Authentication
java.lang.Object
org.apache.maven.artifact.repository.Authentication
Authentication
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the passphrase of the private key file.Get the user's password which is used when connecting to the repository.Get the absolute path to the private key file.Get the username used to access the repository.void
setPassphrase
(String passphrase) Set the passphrase of the private key file.void
setPassword
(String password) Set the user's password which is used when connecting to the repository.void
setPrivateKey
(String privateKey) Set the absolute path to private key file.void
setUsername
(String userName) Set username used to access the repository.
-
Constructor Details
-
Authentication
-
-
Method Details
-
getPassword
Get the user's password which is used when connecting to the repository.- Returns:
- password of user
-
setPassword
Set the user's password which is used when connecting to the repository.- Parameters:
password
- password of the user
-
getUsername
Get the username used to access the repository.- Returns:
- username at repository
-
setUsername
Set username used to access the repository.- Parameters:
userName
- the username used to access repository
-
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
Set the passphrase of the private key file.- Parameters:
passphrase
- passphrase of the private key file
-
getPrivateKey
Get the absolute path to the private key file.- Returns:
- absolute path to private key
-
setPrivateKey
Set the absolute path to private key file.- Parameters:
privateKey
- path to private key in local file system
-