api / org.gradle.api.artifacts.repositories / PasswordCredentials

PasswordCredentials

interface PasswordCredentials : PasswordCredentials

A username/password credentials that can be used to login to password-protected remote repository.

Functions

getPassword

abstract fun getPassword(): String

Returns the password to use when authenticating to this repository.

getUsername

abstract fun getUsername(): String

Returns the user name to use when authenticating to this repository.

setPassword

abstract fun setPassword(password: String): Unit

Sets the password to use when authenticating to this repository.

setUsername

abstract fun setUsername(userName: String): Unit

Sets the user name to use when authenticating to this repository.