public class DefaultPasswordCredentials extends Object implements PasswordCredentials
| Constructor and Description |
|---|
DefaultPasswordCredentials() |
DefaultPasswordCredentials(String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPassword()
Returns the password to use when authenticating to this repository.
|
String |
getUsername()
Returns the user name to use when authenticating to this repository.
|
void |
setPassword(String password)
Sets the password to use when authenticating to this repository.
|
void |
setUsername(String username)
Sets the user name to use when authenticating to this repository.
|
String |
toString() |
public String getUsername()
PasswordCredentialsgetUsername in interface PasswordCredentialspublic void setUsername(String username)
PasswordCredentialssetUsername in interface PasswordCredentialsusername - The user name. May be null.public String getPassword()
PasswordCredentialsgetPassword in interface PasswordCredentialspublic void setPassword(String password)
PasswordCredentialssetPassword in interface PasswordCredentialspassword - The password. May be null.Copyright © 2013. All rights reserved