public class LDAPAuthenticationProvider extends AbstractAuthenticationProvider
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
AUTH_NONE |
static java.lang.String |
AUTH_SIMPLE |
static java.lang.String |
AUTH_STRONG |
static java.lang.String |
REFERRAL_FOLLOW |
static java.lang.String |
REFERRAL_IGNORE |
static java.lang.String |
REFERRAL_THROW |
DAO_TYPE, HTTP_TYPE, LDAP_TYPE, NO_TYPE, USER_TYPE
XML_TAG
构造器和说明 |
---|
LDAPAuthenticationProvider() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
authenticate(Authentication authentication)
验证用户是否通过验证
|
java.lang.String |
getAuthentication() |
java.lang.String |
getContextFactory() |
java.lang.String |
getPrincipalSuffix() |
java.lang.String |
getReferral() |
java.lang.String |
getRoleAttribute() |
java.lang.String |
getSearchBase() |
java.lang.String |
getSystemPassword() |
java.lang.String |
getSystemUsername() |
java.lang.String |
getUrl() |
boolean |
isUsePool()
是否使用的连接池
|
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
setAuthentication(java.lang.String authentication) |
void |
setContextFactory(java.lang.String contextFactory) |
void |
setPrincipalSuffix(java.lang.String principalSuffix) |
void |
setReferral(java.lang.String referral) |
void |
setRoleAttribute(java.lang.String roleAttribute) |
void |
setSearchBase(java.lang.String searchBase) |
void |
setSystemPassword(java.lang.String systemPassword) |
void |
setSystemUsername(java.lang.String systemUsername) |
void |
setUrl(java.lang.String url) |
void |
setUsePool(boolean usePool) |
int |
uType()
标示认证方式的类型
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
clone, isDetailAuthority, isRootManager, listAuthorities
public static final java.lang.String AUTH_SIMPLE
public static final java.lang.String AUTH_NONE
public static final java.lang.String AUTH_STRONG
public static final java.lang.String REFERRAL_FOLLOW
public static final java.lang.String REFERRAL_IGNORE
public static final java.lang.String REFERRAL_THROW
public int uType()
public boolean authenticate(Authentication authentication) throws java.lang.Exception
authentication
- 包含用户信息的认证对象java.lang.Exception
- 认证失败public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- the url to setpublic java.lang.String getPrincipalSuffix()
public void setPrincipalSuffix(java.lang.String principalSuffix)
principalSuffix
- the principalSuffix to setpublic java.lang.String getAuthentication()
public void setAuthentication(java.lang.String authentication)
authentication
- the authentication to setpublic java.lang.String getContextFactory()
public void setContextFactory(java.lang.String contextFactory)
contextFactory
- the contextFactory to setpublic java.lang.String getSearchBase()
public void setSearchBase(java.lang.String searchBase)
searchBase
- the searchBase to setpublic java.lang.String getReferral()
public void setReferral(java.lang.String referral)
referral
- the referral to setpublic java.lang.String getSystemUsername()
public void setSystemUsername(java.lang.String systemUsername)
systemUsername
- the systemUsername to setpublic java.lang.String getSystemPassword()
public void setSystemPassword(java.lang.String systemPassword)
systemPassword
- the systemPassword to setpublic boolean isUsePool()
public void setUsePool(boolean usePool)
usePool
- the usePool to setpublic java.lang.String getRoleAttribute()
public void setRoleAttribute(java.lang.String roleAttribute)
roleAttribute
- the roleAttribute to setpublic void readXML(XMLableReader reader)
XMLReadable
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
XMLWriter
writer
- XML写入对象