public class UsernamePasswordToken extends Object implements AuthenticationToken
| Constructor and Description |
|---|
UsernamePasswordToken(String username,
char[] password) |
UsernamePasswordToken(String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
char[] |
getPassword() |
String |
getPasswordS() |
Object |
getPrincipal()
Returns the account identity submitted during the authentication process.
|
String |
getUsername() |
int |
hashCode() |
void |
setPassword(char[] password) |
void |
setPassword(String password) |
void |
setUsername(String username) |
String |
toString() |
public UsernamePasswordToken(String username, char[] password)
public String getUsername()
public void setUsername(String username)
public char[] getPassword()
public String getPasswordS()
public void setPassword(char[] password)
public void setPassword(String password)
public Object getPrincipal()
AuthenticationTokenUltimately, the object returned is application specific and can represent any account identity (user id, X.509 certificate, etc).
getPrincipal in interface AuthenticationTokenCopyright © 2018 Space Applications Services. All rights reserved.