类 LdapAuthenticationProvider

  • 所有已实现的接口:
    org.springframework.security.authentication.AuthenticationProvider

    public class LdapAuthenticationProvider
    extends java.lang.Object
    implements org.springframework.security.authentication.AuthenticationProvider
    LDAP auth provider.
    作者:
    zjw
    • 字段详细资料

      • DEFAULT_PASSWORD

        private static final java.lang.String DEFAULT_PASSWORD
        另请参阅:
        常量字段值
      • LDAP_PREFIX

        private static final java.lang.String LDAP_PREFIX
        另请参阅:
        常量字段值
      • ldapTemplate

        private final org.springframework.ldap.core.LdapTemplate ldapTemplate
      • filterPrefix

        private final java.lang.String filterPrefix
      • caseSensitive

        private final boolean caseSensitive
    • 构造器详细资料

      • LdapAuthenticationProvider

        public LdapAuthenticationProvider​(org.springframework.ldap.core.LdapTemplate ldapTemplate,
                                          NacosUserDetailsServiceImpl userDetailsService,
                                          NacosRoleServiceImpl nacosRoleService,
                                          java.lang.String filterPrefix,
                                          boolean caseSensitive)
    • 方法详细资料

      • authenticate

        public org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)
                                                                      throws org.springframework.security.core.AuthenticationException
        指定者:
        authenticate 在接口中 org.springframework.security.authentication.AuthenticationProvider
        抛出:
        org.springframework.security.core.AuthenticationException
      • isAdmin

        private boolean isAdmin​(java.lang.String username)
      • ldapLogin

        private boolean ldapLogin​(java.lang.String username,
                                  java.lang.String password)
                           throws org.springframework.security.core.AuthenticationException
        抛出:
        org.springframework.security.core.AuthenticationException
      • supports

        public boolean supports​(java.lang.Class<?> aClass)
        指定者:
        supports 在接口中 org.springframework.security.authentication.AuthenticationProvider