@Introspected public class UsernamePasswordCredentials extends java.lang.Object implements java.io.Serializable, AuthenticationRequest<java.lang.String,java.lang.String>
Constructor and Description |
---|
UsernamePasswordCredentials()
Empty constructor.
|
UsernamePasswordCredentials(java.lang.String username,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getIdentity() |
java.lang.String |
getPassword()
password getter.
|
java.lang.String |
getSecret()
Returns password conforming to
AuthenticationRequest blueprint. |
java.lang.String |
getUsername()
username getter.
|
int |
hashCode() |
void |
setPassword(java.lang.String password)
password setter.
|
void |
setUsername(java.lang.String username)
username setter.
|
public UsernamePasswordCredentials()
public UsernamePasswordCredentials(java.lang.String username, java.lang.String password)
username
- e.g. adminpassword
- raw passwordpublic java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- e.g. adminpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- raw passwordpublic java.lang.String getIdentity()
getIdentity
in interface AuthenticationRequest<java.lang.String,java.lang.String>
public java.lang.String getSecret()
AuthenticationRequest
blueprint.getSecret
in interface AuthenticationRequest<java.lang.String,java.lang.String>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object