Credentials

public class Credentials

The Credentials class is used to represent user credentials, when a http request requires an authentication

Constructors

Credentials

public Credentials(String username, String password)

Constructor.

Parameters:
  • username – the username
  • password – the user password

Methods

getPassword

public String getPassword()
Returns:the user password

getUsername

public String getUsername()
Returns:the username

setPassword

public void setPassword(String password)
Parameters:
  • password – the user password

setUsername

public void setUsername(String username)
Parameters:
  • username – the username