Class LdapAuthenticationProvider
java.lang.Object
com.foreach.across.modules.user.security.AbstractUserInDirectoryAuthenticationProvider
com.foreach.across.modules.ldap.services.LdapAuthenticationProvider
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.MessageSourceAware
,org.springframework.security.authentication.AuthenticationProvider
- Author:
- Marc Vanbrabant
-
Field Summary
Fields inherited from class com.foreach.across.modules.user.security.AbstractUserInDirectoryAuthenticationProvider
messages, userDirectory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
additionalAuthenticationChecks
(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) protected org.springframework.security.core.userdetails.UserDetails
buildUserDetails
(User user, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) protected void
void
setLdapContextSource
(LdapConnector ldapConnector) void
setSearchFilter
(String searchFilter) Methods inherited from class com.foreach.across.modules.user.security.AbstractUserInDirectoryAuthenticationProvider
afterPropertiesSet, authenticate, createSuccessAuthentication, retrieveUser, setAuthoritiesMapper, setForcePrincipalAsString, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setThrowExceptionIfUserNotFound, setUserCache, setUserDirectory, setUserService, supports
-
Constructor Details
-
LdapAuthenticationProvider
public LdapAuthenticationProvider()
-
-
Method Details
-
additionalAuthenticationChecks
protected void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException - Specified by:
additionalAuthenticationChecks
in classAbstractUserInDirectoryAuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
doAfterPropertiesSet
- Overrides:
doAfterPropertiesSet
in classAbstractUserInDirectoryAuthenticationProvider
- Throws:
Exception
-
buildUserDetails
protected org.springframework.security.core.userdetails.UserDetails buildUserDetails(User user, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException - Specified by:
buildUserDetails
in classAbstractUserInDirectoryAuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
setSearchFilter
-
setLdapContextSource
-