类 LdapAuthenticationManager
- java.lang.Object
-
- com.alibaba.nacos.plugin.auth.impl.authenticate.AbstractAuthenticationManager
-
- com.alibaba.nacos.plugin.auth.impl.authenticate.LdapAuthenticationManager
-
- 所有已实现的接口:
IAuthenticationManager
public class LdapAuthenticationManager extends AbstractAuthenticationManager
LdapAuthenticatoinManager.- 作者:
- Weizhan▪Yun
-
-
字段概要
字段 修饰符和类型 字段 说明 private booleancaseSensitiveprivate java.lang.StringfilterPrefixprivate org.springframework.ldap.core.LdapTemplateldapTemplate-
从类继承的字段 com.alibaba.nacos.plugin.auth.impl.authenticate.AbstractAuthenticationManager
jwtTokenManager, roleService, userDetailsService
-
-
构造器概要
构造器 构造器 说明 LdapAuthenticationManager(org.springframework.ldap.core.LdapTemplate ldapTemplate, NacosUserDetailsServiceImpl userDetailsService, TokenManagerDelegate jwtTokenManager, NacosRoleServiceImpl roleService, java.lang.String filterPrefix, boolean caseSensitive)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 NacosUserauthenticate(java.lang.String username, java.lang.String rawPassword)Authentication of user with password.private booleanldapLogin(java.lang.String username, java.lang.String password)-
从类继承的方法 com.alibaba.nacos.plugin.auth.impl.authenticate.AbstractAuthenticationManager
authenticate, authenticate, authorize, hasGlobalAdminRole, hasGlobalAdminRole
-
-
-
-
构造器详细资料
-
LdapAuthenticationManager
public LdapAuthenticationManager(org.springframework.ldap.core.LdapTemplate ldapTemplate, NacosUserDetailsServiceImpl userDetailsService, TokenManagerDelegate jwtTokenManager, NacosRoleServiceImpl roleService, java.lang.String filterPrefix, boolean caseSensitive)
-
-
方法详细资料
-
authenticate
public NacosUser authenticate(java.lang.String username, java.lang.String rawPassword) throws com.alibaba.nacos.plugin.auth.exception.AccessException
从接口复制的说明:IAuthenticationManagerAuthentication of user with password.- 指定者:
authenticate在接口中IAuthenticationManager- 覆盖:
authenticate在类中AbstractAuthenticationManager- 参数:
username- usernamerawPassword- raw password- 返回:
- user related to this request, null if no user info is found.
- 抛出:
com.alibaba.nacos.plugin.auth.exception.AccessException- if authentication is failed
-
ldapLogin
private boolean ldapLogin(java.lang.String username, java.lang.String password)
-
-