public class UsernamePasswordAuthentication extends AbstractCommonAuthentication
isRoot
构造器和说明 |
---|
UsernamePasswordAuthentication(java.lang.String username,
java.lang.String password) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getPassWord()
获取密码
|
java.lang.String |
getUserName()
获取用户名
|
void |
setPrincipal(java.lang.Object principal)
修改认证信息中的用户名,用于多账号登录的情况
|
getCredentials, getPrincipal
equals, getAuthorities, getRole, isAuthenticated, isRoot, setAuthenticated, setAuthorities, setRoot, toString
getRole
getAuthorities, isAuthenticated, isRoot, setAuthenticated, setAuthorities, setRoot
public UsernamePasswordAuthentication(java.lang.String username, java.lang.String password)
public java.lang.String getPassWord()
CommonAuthentication
public java.lang.String getUserName()
CommonAuthentication
public void setPrincipal(java.lang.Object principal)
principal
- 用户名