Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gradle.api.artifacts.repositories
Interface PasswordCredentials

    public interface PasswordCredentials

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

Method Summary
`String` | `getPassword()` Returns the password to use when authenticating to this repository.
`String` | `getUsername()` Returns the user name to use when authenticating to this repository.
`void` | `setPassword(String password)` Sets the password to use when authenticating to this repository.
`void` | `setUsername(String userName)` Sets the user name to use when authenticating to this repository.

Method Detail

### getUsername

    String getUsername()

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

  Returns:
    The user name. May be null.

### setUsername

    void setUsername(String userName)

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

  Parameters:
    `userName` - The user name. May be null.

### getPassword

    String getPassword()

  Returns the password to use when authenticating to this repository.

  Returns:
    The password. May be null.

### setPassword

    void setPassword(String password)

  Sets the password to use when authenticating to this repository.

  Parameters:
    `password` - The password. May be null.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD