public class UserNamePassWordFSAuthenticationProvider extends AbstractAuthenticationProvider
DAO_TYPE, HTTP_TYPE, LDAP_TYPE, NO_TYPE, USER_TYPE
XML_TAG
构造器和说明 |
---|
UserNamePassWordFSAuthenticationProvider(boolean needPassword) |
UserNamePassWordFSAuthenticationProvider(boolean needPassword,
boolean isMobile) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
authenticate(Authentication authentication)
验证登录
|
static UserNamePassWordFSAuthenticationProvider |
getInstance() |
boolean |
isMobileAuth()
是否为移动设备登入
|
boolean |
isNeedPassword()
验证时是否需要密码
|
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
setIsMobileAuth(boolean isMobile) |
void |
setNeedPassword(boolean needPassword) |
int |
uType()
标识
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
clone, isDetailAuthority, isRootManager, listAuthorities
public UserNamePassWordFSAuthenticationProvider(boolean needPassword)
public UserNamePassWordFSAuthenticationProvider(boolean needPassword, boolean isMobile)
public static UserNamePassWordFSAuthenticationProvider getInstance()
public boolean authenticate(Authentication authentication) throws java.lang.Exception
authentication
- 包含用户信息的认证对象java.lang.Exception
- 异常public int uType()
public void readXML(XMLableReader reader)
XMLReadable
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
XMLWriter
writer
- XML写入对象public boolean isNeedPassword()
public void setNeedPassword(boolean needPassword)
public boolean isMobileAuth()
public void setIsMobileAuth(boolean isMobile)