public class HttpAuthenticationProvider extends AbstractAuthenticationProvider
DAO_TYPE, HTTP_TYPE, LDAP_TYPE, NO_TYPE, USER_TYPE
XML_TAG
构造器和说明 |
---|
HttpAuthenticationProvider() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
authenticate(Authentication authentication)
HTTP认证
|
java.lang.String |
getUrl()
获取url
|
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
setUrl(java.lang.String url)
设置url
|
int |
uType()
获取utype:标记验证的类型,HTTP为2
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
clone, isDetailAuthority, isRootManager, listAuthorities
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- public int uType()
public boolean authenticate(Authentication authentication) throws java.lang.Exception
authentication
- 当前验证方式java.lang.Exception
- 认证失败public void readXML(XMLableReader reader)
XMLReadable
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
XMLWriter
writer
- XML写入对象