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 TypeMethodDescription@Nullable StringReturns the password to use when authenticating to the HTTP build cache.@Nullable StringReturns the user name to use when authenticating to the HTTP build cache.voidsetPassword(@Nullable String password) Sets the password to use when authenticating to the HTTP build cache.voidsetUsername(@Nullable 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.
-