Interface PasswordCredentials
-
- All Superinterfaces:
Credentials,PasswordCredentials
public interface PasswordCredentials extends PasswordCredentials
A username/password credentials that can be used to login to password-protected remote repository.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetPassword()Returns the password to use when authenticating to this repository.java.lang.StringgetUsername()Returns the user name to use when authenticating to this repository.voidsetPassword(java.lang.String password)Sets the password to use when authenticating to this repository.voidsetUsername(java.lang.String userName)Sets the user name to use when authenticating to this repository.
-
-
-
Method Detail
-
getUsername
@Nullable java.lang.String getUsername()
Returns the user name to use when authenticating to this repository.- Specified by:
getUsernamein interfacePasswordCredentials- Returns:
- The user name. May be null.
-
setUsername
void setUsername(@Nullable java.lang.String userName)Sets the user name to use when authenticating to this repository.- Specified by:
setUsernamein interfacePasswordCredentials- Parameters:
userName- The user name. May be null.
-
getPassword
@Nullable java.lang.String getPassword()
Returns the password to use when authenticating to this repository.- Specified by:
getPasswordin interfacePasswordCredentials- Returns:
- The password. May be null.
-
setPassword
void setPassword(@Nullable java.lang.String password)Sets the password to use when authenticating to this repository.- Specified by:
setPasswordin interfacePasswordCredentials- Parameters:
password- The password. May be null.
-
-