public class UsernamePasswordCredential extends Object implements Credential, Serializable
UNKNOWN_ID| Constructor and Description |
|---|
UsernamePasswordCredential()
Default constructor.
|
UsernamePasswordCredential(String userName,
String password)
Creates a new instance with the given username and password.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getId()
Gets a credential identifier that is safe to record for logging, auditing, or presentation to the user.
|
String |
getPassword() |
String |
getUsername() |
int |
hashCode() |
void |
setPassword(String password) |
void |
setUsername(String userName) |
String |
toString() |
public UsernamePasswordCredential()
public final String getPassword()
public final void setPassword(String password)
password - The password to set.public final String getUsername()
public final void setUsername(String userName)
userName - The userName to set.public String getId()
getId in interface CredentialCredential.UNKNOWN_ID for cases where an ID
is not readily available or meaningful.Copyright © 2004-2015 Apereo. All Rights Reserved.