Package org.gradle.api.credentials
Interface PasswordCredentials
- All Superinterfaces:
- Credentials
- All Known Subinterfaces:
- PasswordCredentials
- All Known Implementing Classes:
- HttpBuildCacheCredentials
A username/password credentials that can be used to login to something protected by a username and password.
- Since:
- 3.5
- 
Method SummaryModifier and TypeMethodDescriptionReturns the password to use when authenticating.Returns the user name to use when authenticating.voidsetPassword(String password) Sets the password to use when authenticating.voidsetUsername(String userName) Sets the user name to use when authenticating.
- 
Method Details- 
getUsernameReturns the user name to use when authenticating.- Returns:
- The user name. May be null.
 
- 
setUsernameSets the user name to use when authenticating.- Parameters:
- userName- The user name. May be null.
 
- 
getPasswordReturns the password to use when authenticating.- Returns:
- The password. May be null.
 
- 
setPasswordSets the password to use when authenticating.- Parameters:
- password- The password. May be null.
 
 
-