Package io.dropwizard.auth.basic
Class BasicCredentials
java.lang.Object
io.dropwizard.auth.basic.BasicCredentials
A set of user-provided Basic Authentication credentials, consisting of a username and a
password.
-
Constructor Summary
ConstructorDescriptionBasicCredentials
(String username, String password) Creates a new BasicCredentials with the given username and password. -
Method Summary
-
Constructor Details
-
BasicCredentials
Creates a new BasicCredentials with the given username and password.- Parameters:
username
- the usernamepassword
- the password
-
-
Method Details
-
getUsername
Returns the credentials' username.- Returns:
- the credentials' username
-
getPassword
Returns the credentials' password.- Returns:
- the credentials' password
-
hashCode
public int hashCode() -
equals
-
toString
-