Class UsernamePasswordCredentials

java.lang.Object
org.openhab.core.auth.UsernamePasswordCredentials
All Implemented Interfaces:
Credentials

public class UsernamePasswordCredentials extends Object implements Credentials
Credentials which represent user name and password.
Author:
Ɓukasz Dywicki - Initial contribution, Kai Kreuzer - Added JavaDoc
  • Constructor Details

    • UsernamePasswordCredentials

      public UsernamePasswordCredentials(String username, String password)
      Creates a new instance
      Parameters:
      username - name of the user
      password - password of the user
  • Method Details

    • getUsername

      public String getUsername()
      Retrieves the user name
      Returns:
      the username
    • getPassword

      public String getPassword()
      Retrieves the password
      Returns:
      the password
    • toString

      public String toString()
      Overrides:
      toString in class Object