Class LdapAuthenticationProvider

  • All Implemented Interfaces:
    org.springframework.security.authentication.AuthenticationProvider

    public class LdapAuthenticationProvider
    extends Object
    implements org.springframework.security.authentication.AuthenticationProvider
    Implementation of AuthenticationProvider to support Studio's LDAP authentication
    Since:
    4.0
    Author:
    joseross
    • Method Detail

      • authenticate

        public org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)
                                                                      throws org.springframework.security.core.AuthenticationException
        Specified by:
        authenticate in interface org.springframework.security.authentication.AuthenticationProvider
        Throws:
        org.springframework.security.core.AuthenticationException
      • upsertUserGroup

        protected void upsertUserGroup​(String groupName,
                                       String username)
      • supports

        public boolean supports​(Class<?> authentication)
        Specified by:
        supports in interface org.springframework.security.authentication.AuthenticationProvider
      • setLdapUrl

        public void setLdapUrl​(String ldapUrl)
      • setLdapPassword

        public void setLdapPassword​(String ldapPassword)
      • setLdapUsername

        public void setLdapUsername​(String ldapUsername)
      • setLdapBaseContext

        public void setLdapBaseContext​(String ldapBaseContext)
      • setUsernameLdapAttribute

        public void setUsernameLdapAttribute​(String usernameLdapAttribute)
      • setFirstNameLdapAttribute

        public void setFirstNameLdapAttribute​(String firstNameLdapAttribute)
      • setLastNameLdapAttribute

        public void setLastNameLdapAttribute​(String lastNameLdapAttribute)
      • setGroupNameLdapAttribute

        public void setGroupNameLdapAttribute​(String groupNameLdapAttribute)
      • setGroupNameLdapAttributeRegex

        public void setGroupNameLdapAttributeRegex​(String groupNameLdapAttributeRegex)
      • setGroupNameLdapAttributeMatchIndex

        public void setGroupNameLdapAttributeMatchIndex​(int groupNameLdapAttributeMatchIndex)
      • setEmailLdapAttribute

        public void setEmailLdapAttribute​(String emailLdapAttribute)