Groovy Documentation

org.gradle.api.artifacts.repositories
[Java] Interface PasswordCredentials


public interface PasswordCredentials

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


Method Summary
java.lang.String getPassword()

Returns the password to use when authenticating to this repository.

java.lang.String getUsername()

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

void setPassword(java.lang.String password)

Sets the password to use when authenticating to this repository.

void setUsername(java.lang.String userName)

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

 

Method Detail

getPassword

public java.lang.String getPassword()
Returns the password to use when authenticating to this repository.
Returns:
The password. May be null.


getUsername

public java.lang.String getUsername()
Returns the user name to use when authenticating to this repository.
Returns:
The user name. May be null.


setPassword

public void setPassword(java.lang.String password)
Sets the password to use when authenticating to this repository.
Parameters:
password - The password. May be null.


setUsername

public void setUsername(java.lang.String userName)
Sets the user name to use when authenticating to this repository.
Parameters:
userName - The user name. May be null.


 

Groovy Documentation