@Deprecated public class DaoAuthenticationProvider extends AbstractAuthenticationProvider
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DaoAuthenticationProvider.RoleConfig
已过时。
|
static class |
DaoAuthenticationProvider.UserConfig
已过时。
|
DAO_TYPE, HTTP_TYPE, LDAP_TYPE, NO_TYPE, USER_TYPEXML_TAG| 构造器和说明 |
|---|
DaoAuthenticationProvider()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
authenticate(Authentication authentication)
已过时。
验证用户是否通过验证
|
PasswordValidator |
getPasswordValidator()
已过时。
|
DaoAuthenticationProvider.RoleConfig |
getRoleConfig()
已过时。
|
DaoAuthenticationProvider.UserConfig |
getUserConfig()
已过时。
|
boolean |
isDetailAuthority()
已过时。
是否是详细权限配置
|
Authority[] |
listAuthorities()
已过时。
所有角色
|
void |
readXML(XMLableReader reader)
已过时。
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
setPasswordValidator(PasswordValidator passwordValidator)
已过时。
|
void |
setRoleConfig(DaoAuthenticationProvider.RoleConfig roleConfig)
已过时。
|
void |
setUserConfig(DaoAuthenticationProvider.UserConfig userConfig)
已过时。
|
int |
uType()
已过时。
标示认证方式的类型
|
void |
writeXML(XMLPrintWriter writer)
已过时。
Write XML.
|
clone, isRootManagerpublic DaoAuthenticationProvider.UserConfig getUserConfig()
public void setUserConfig(DaoAuthenticationProvider.UserConfig userConfig)
public DaoAuthenticationProvider.RoleConfig getRoleConfig()
public void setRoleConfig(DaoAuthenticationProvider.RoleConfig roleConfig)
public PasswordValidator getPasswordValidator()
public void setPasswordValidator(PasswordValidator passwordValidator)
public int uType()
public boolean authenticate(Authentication authentication) throws java.lang.Exception
authentication - 包含用户信息的认证对象java.lang.Exception - 认证失败public boolean isDetailAuthority()
isDetailAuthority 在接口中 AuthenticationProviderisDetailAuthority 在类中 AbstractAuthenticationProviderpublic Authority[] listAuthorities() throws java.lang.Exception
listAuthorities 在接口中 AuthenticationProviderlistAuthorities 在类中 AbstractAuthenticationProviderjava.lang.Exception - 可能抛出数据集为空的异常public void readXML(XMLableReader reader)
XMLReadablereader - XML读取对象XMLableReaderpublic void writeXML(XMLPrintWriter writer)
XMLWriterwriter - XML写入对象