public abstract class AbstractAuthentication extends java.lang.Object implements Authentication
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
isRoot |
| 构造器和说明 |
|---|
AbstractAuthentication() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
AuthorityBridge[] |
getAuthorities()
获取认证信息里面的角色信息结合
|
java.lang.String[] |
getRole() |
boolean |
isAuthenticated()
是否通过验证
|
boolean |
isRoot()
登录的用户是不是超级管理员
|
void |
setAuthenticated(boolean isAuthenticated)
设置认证通过与否
|
void |
setAuthorities(AuthorityBridge[] authorities)
设置认证信息里面的角色信息
|
void |
setRoot(boolean isRoot)
设置是否为root用户认证
|
java.lang.String |
toString()
转成字符串
|
getCredentials, getPrincipal, setPrincipalpublic java.lang.String[] getRole()
getRole 在接口中 Authenticationpublic void setAuthorities(AuthorityBridge[] authorities)
setAuthorities 在接口中 AuthenticationBridgeauthorities - 角色集合public AuthorityBridge[] getAuthorities()
getAuthorities 在接口中 AuthenticationBridgepublic boolean isAuthenticated()
isAuthenticated 在接口中 AuthenticationBridgepublic void setAuthenticated(boolean isAuthenticated)
setAuthenticated 在接口中 AuthenticationBridgeisAuthenticated - true表示认证通过,false表示认证不通过public boolean isRoot()
isRoot 在接口中 AuthenticationBridgepublic void setRoot(boolean isRoot)
setRoot 在接口中 AuthenticationBridgeisRoot - true表示是root账户,false表示不是root账户public boolean equals(java.lang.Object obj)
equals 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Object