Class 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 Detail

      • UsernamePasswordCredentials

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

      • getUsername

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

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