Interface PasswordCredentials
- All Superinterfaces:
Credentials
,PasswordCredentials
A username/password credentials that can be used to login to password-protected remote repository.
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the password to use when authenticating to this repository.@Nullable String
Returns the user name to use when authenticating to this repository.void
setPassword
(@Nullable String password) Sets the password to use when authenticating to this repository.void
setUsername
(@Nullable String userName) Sets the user name to use when authenticating to this repository.
-
Method Details
-
getUsername
@Nullable String getUsername()Returns the user name to use when authenticating to this repository.- Specified by:
getUsername
in interfacePasswordCredentials
- Returns:
- The user name. May be null.
-
setUsername
Sets the user name to use when authenticating to this repository.- Specified by:
setUsername
in interfacePasswordCredentials
- Parameters:
userName
- The user name. May be null.
-
getPassword
@Nullable String getPassword()Returns the password to use when authenticating to this repository.- Specified by:
getPassword
in interfacePasswordCredentials
- Returns:
- The password. May be null.
-
setPassword
Sets the password to use when authenticating to this repository.- Specified by:
setPassword
in interfacePasswordCredentials
- Parameters:
password
- The password. May be null.
-