org.gradle.caching.http

## Class HttpBuildCacheCredentials

- java.lang.Object
- - org.gradle.caching.http.HttpBuildCacheCredentials

- All Implemented Interfaces:
    Credentials, PasswordCredentials

      @Incubating
      public class HttpBuildCacheCredentials
      extends Object
      implements PasswordCredentials

  Password credentials for a HTTP build cache backend.
  Since:
    3.5

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HttpBuildCacheCredentials()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getPassword()` Returns the password to use when authenticating to the HTTP build cache.
    `String` | `getUsername()` Returns the user name to use when authenticating to the HTTP build cache.
    `void` | `setPassword(String password)` Sets the password to use when authenticating to the HTTP build cache.
    `void` | `setUsername(String username)` Sets the user name to use when authenticating to the HTTP build cache.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### HttpBuildCacheCredentials

          public HttpBuildCacheCredentials()

  - ### Method Detail

    - #### getUsername

          public String getUsername()

      Returns the user name to use when authenticating to the HTTP build cache.
      Specified by:
        `getUsername` in interface `PasswordCredentials`
      Returns:
        The user name. May be null.

    - #### setUsername

          public void setUsername(String username)

      Sets the user name to use when authenticating to the HTTP build cache.
      Specified by:
        `setUsername` in interface `PasswordCredentials`
      Parameters:
        `username` - The user name. May be null.

    - #### getPassword

          public String getPassword()

      Returns the password to use when authenticating to the HTTP build cache.
      Specified by:
        `getPassword` in interface `PasswordCredentials`
      Returns:
        The password. May be null.

    - #### setPassword

          public void setPassword(String password)

      Sets the password to use when authenticating to the HTTP build cache.
      Specified by:
        `setPassword` in interface `PasswordCredentials`
      Parameters:
        `password` - The password. May be null.