For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

PasswordCredentials

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

Since

3.5

Inheritors

Functions

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