Package org.gradle.api.credentials
Schnittstelle PasswordCredentials
- Alle Superschnittstellen:
Credentials
- Alle bekannten Unterschnittstellen:
PasswordCredentials
- Alle bekannten Implementierungsklassen:
HttpBuildCacheCredentials
A username/password credentials that can be used to login to something protected by a username and password.
- Seit:
- 3.5
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns 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.
-
Methodendetails
-
getUsername
Returns the user name to use when authenticating.- Gibt zurück:
- The user name. May be null.
-
setUsername
Sets the user name to use when authenticating.- Parameter:
userName- The user name. May be null.
-
getPassword
Returns the password to use when authenticating.- Gibt zurück:
- The password. May be null.
-
setPassword
Sets the password to use when authenticating.- Parameter:
password- The password. May be null.
-