Package org.gradle.caching.http
Class HttpBuildCacheCredentials
java.lang.Object
org.gradle.caching.http.HttpBuildCacheCredentials
- All Implemented Interfaces:
Credentials,PasswordCredentials
Password credentials for a HTTP build cache backend.
- Since:
- 3.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the password to use when authenticating to the HTTP build cache.Returns the user name to use when authenticating to the HTTP build cache.voidsetPassword(String password) Sets the password to use when authenticating to the HTTP build cache.voidsetUsername(String username) Sets the user name to use when authenticating to the HTTP build cache.
-
Constructor Details
-
HttpBuildCacheCredentials
public HttpBuildCacheCredentials()
-
-
Method Details
-
getUsername
Returns the user name to use when authenticating to the HTTP build cache.- Specified by:
getUsernamein interfacePasswordCredentials- Returns:
- The user name. May be null.
-
setUsername
Sets the user name to use when authenticating to the HTTP build cache.- Specified by:
setUsernamein interfacePasswordCredentials- Parameters:
username- The user name. May be null.
-
getPassword
Returns the password to use when authenticating to the HTTP build cache.- Specified by:
getPasswordin interfacePasswordCredentials- Returns:
- The password. May be null.
-
setPassword
Sets the password to use when authenticating to the HTTP build cache.- Specified by:
setPasswordin interfacePasswordCredentials- Parameters:
password- The password. May be null.
-