@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.UserDirectoryServiceProviderManager| Constructor and Description |
|---|
UserDirectoryAuthenticationProvider(UserDirectoryService userDirectoryService,
UserDirectoryServiceProviderManager userDirectoryServiceProviderManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
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 |
handles(Class<?> entityClass) |
void |
reload()
Forces a reload of the internal directory authentication providers.
|
boolean |
supports(Class<?> authentication) |
@Autowired public UserDirectoryAuthenticationProvider(UserDirectoryService userDirectoryService, UserDirectoryServiceProviderManager userDirectoryServiceProviderManager)
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
authenticate in interface org.springframework.security.authentication.AuthenticationProviderorg.springframework.security.core.AuthenticationExceptionpublic boolean supports(Class<?> authentication)
supports in interface org.springframework.security.authentication.AuthenticationProviderpublic void reload()
public boolean handles(Class<?> entityClass)
handles in interface com.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>public void beforeUpdate(UserDirectory entity)
beforeUpdate in interface com.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>beforeUpdate in class com.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>public void afterDelete(UserDirectory entity)
afterDelete in interface com.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>afterDelete in class com.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>public void afterCreate(UserDirectory entity)
afterCreate in interface com.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>afterCreate in class com.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>public void afterDeleteAll(Class<?> entityClass)
afterDeleteAll in interface com.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>afterDeleteAll in class com.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>Copyright © 2020. All rights reserved.