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