gradle
8.3

# PasswordCredentials

interface PasswordCredentials : Credentials

A username/password credentials that can be used to login to something protected by a username and password.

#### Inheritors

HttpBuildCacheCredentials
PasswordCredentials

## Functions

getPassword
Link copied to clipboard
@Nullable
abstract fun getPassword(): String
Returns the password to use when authenticating.
getUsername
Link copied to clipboard
@Nullable
abstract fun getUsername(): String
Returns the user name to use when authenticating.
setPassword
Link copied to clipboard
abstract fun setPassword(@Nullable password: String)
Sets the password to use when authenticating.
setUsername
Link copied to clipboard
abstract fun setUsername(@Nullable userName: String)
Sets the user name to use when authenticating.