public class RoleAuthentication extends AbstractCommonAuthentication
isRoot
构造器和说明 |
---|
RoleAuthentication(java.lang.String roleName) |
限定符和类型 | 方法和说明 |
---|---|
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 java.lang.String getPassWord()
CommonAuthentication
public java.lang.String getUserName()
CommonAuthentication
public void setPrincipal(java.lang.Object principal)
principal
- 用户名