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 String
Returns the password to use when authenticating to the HTTP build cache.@Nullable String
Returns the user name to use when authenticating to the HTTP build cache.void
setPassword
(@Nullable String password) Sets the password to use when authenticating to the HTTP build cache.void
setUsername
(@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:
getUsername
in interfacePasswordCredentials
- Returns:
- The user name. May be null.
-
setUsername
Sets the user name to use when authenticating to the HTTP build cache.- Specified by:
setUsername
in interfacePasswordCredentials
- Parameters:
username
- The user name. May be null.
-
getPassword
Returns the password to use when authenticating to the HTTP build cache.- Specified by:
getPassword
in interfacePasswordCredentials
- Returns:
- The password. May be null.
-
setPassword
Sets the password to use when authenticating to the HTTP build cache.- Specified by:
setPassword
in interfacePasswordCredentials
- Parameters:
password
- The password. May be null.
-