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
ConstructorDescriptionUserDirectoryAuthenticationProvider
(UserDirectoryService userDirectoryService, UserDirectoryServiceProviderManager userDirectoryServiceProviderManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterCreate
(UserDirectory entity) void
afterDelete
(UserDirectory entity) void
afterDeleteAll
(Class<?> entityClass) org.springframework.security.core.Authentication
authenticate
(org.springframework.security.core.Authentication authentication) void
beforeUpdate
(UserDirectory entity) boolean
void
reload()
Forces a reload of the internal directory authentication providers.boolean
Methods 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:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
supports
- Specified by:
supports
in 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:
handles
in interfacecom.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>
-
beforeUpdate
- Specified by:
beforeUpdate
in interfacecom.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>
- Overrides:
beforeUpdate
in classcom.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>
-
afterDelete
- Specified by:
afterDelete
in interfacecom.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>
- Overrides:
afterDelete
in classcom.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>
-
afterCreate
- Specified by:
afterCreate
in interfacecom.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>
- Overrides:
afterCreate
in classcom.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>
-
afterDeleteAll
- Specified by:
afterDeleteAll
in interfacecom.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>
- Overrides:
afterDeleteAll
in classcom.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>
-