Package org.gradle.caching.http
Class HttpBuildCacheCredentials
- java.lang.Object
-
- org.gradle.caching.http.HttpBuildCacheCredentials
-
- All Implemented Interfaces:
Credentials,PasswordCredentials
public class HttpBuildCacheCredentials extends java.lang.Object implements PasswordCredentials
Password credentials for a HTTP build cache backend.- Since:
- 3.5
-
-
Constructor Summary
Constructors Constructor Description HttpBuildCacheCredentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPassword()Returns the password to use when authenticating to the HTTP build cache.java.lang.StringgetUsername()Returns the user name to use when authenticating to the HTTP build cache.voidsetPassword(java.lang.String password)Sets the password to use when authenticating to the HTTP build cache.voidsetUsername(java.lang.String username)Sets the user name to use when authenticating to the HTTP build cache.
-
-
-
Method Detail
-
getUsername
@Nullable public java.lang.String 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
public void setUsername(@Nullable java.lang.String username)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
@Nullable public java.lang.String getPassword()
Returns the password to use when authenticating to the HTTP build cache.- Specified by:
getPasswordin interfacePasswordCredentials- Returns:
- The password. May be null.
-
setPassword
public void setPassword(@Nullable java.lang.String password)Sets the password to use when authenticating to the HTTP build cache.- Specified by:
setPasswordin interfacePasswordCredentials- Parameters:
password- The password. May be null.
-
-