Class UserDirectoryAuthenticationProvider
java.lang.Object
com.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>
com.foreach.across.modules.user.security.UserDirectoryAuthenticationProvider
- All Implemented Interfaces:
com.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>,org.springframework.security.authentication.AuthenticationProvider
@Component
public class UserDirectoryAuthenticationProvider
extends com.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>
implements org.springframework.security.authentication.AuthenticationProvider
AuthenticationProvider implementation that delegates to other AuthenticationProvider instances
that represent a single UserDirectory. The different providers
will be tried in the directory order until a provider returns a non-null authentication.- Since:
- 2.0.0
- Author:
- Arne Vandamme
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserDirectoryAuthenticationProvider(UserDirectoryService userDirectoryService, UserDirectoryServiceProviderManager userDirectoryServiceProviderManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCreate(UserDirectory entity) voidafterDelete(UserDirectory entity) voidafterDeleteAll(Class<?> entityClass) org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) voidbeforeUpdate(UserDirectory entity) booleanvoidreload()Forces a reload of the internal directory authentication providers.booleanMethods inherited from class com.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter
afterUpdate, beforeCreate, beforeDelete, beforeDeleteAll
-
Constructor Details
-
UserDirectoryAuthenticationProvider
@Autowired public UserDirectoryAuthenticationProvider(UserDirectoryService userDirectoryService, UserDirectoryServiceProviderManager userDirectoryServiceProviderManager)
-
-
Method Details
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException - Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
supports
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
reload
public void reload()Forces a reload of the internal directory authentication providers. This method should be called whenever directories have been modified or directory ordering has changed. -
handles
- Specified by:
handlesin interfacecom.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>
-
beforeUpdate
- Specified by:
beforeUpdatein interfacecom.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>- Overrides:
beforeUpdatein classcom.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>
-
afterDelete
- Specified by:
afterDeletein interfacecom.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>- Overrides:
afterDeletein classcom.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>
-
afterCreate
- Specified by:
afterCreatein interfacecom.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>- Overrides:
afterCreatein classcom.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>
-
afterDeleteAll
- Specified by:
afterDeleteAllin interfacecom.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>- Overrides:
afterDeleteAllin classcom.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>
-