Class BasicCredentials

java.lang.Object
io.dropwizard.auth.basic.BasicCredentials

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

    • 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 Details

    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object