Class BasicCredentials


  • public class BasicCredentials
    extends Object
    A set of user-provided Basic Authentication credentials, consisting of a username and a password.
    • Constructor Detail

      • BasicCredentials

        public BasicCredentials​(String username,
                                String password)
        Creates a new BasicCredentials with the given username and password.
        Parameters:
        username - the username
        password - the password
    • Method Detail

      • getUsername

        public String getUsername()
        Returns the credentials' username.
        Returns:
        the credentials' username
      • getPassword

        public String getPassword()
        Returns the credentials' password.
        Returns:
        the credentials' password
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object