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 Details

  • 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 interface org.springframework.security.authentication.AuthenticationProvider
      Throws:
      org.springframework.security.core.AuthenticationException
    • supports

      public boolean supports(Class<?> authentication)
      Specified by:
      supports in interface org.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

      public boolean handles(Class<?> entityClass)
      Specified by:
      handles in interface com.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>
    • beforeUpdate

      public void beforeUpdate(UserDirectory entity)
      Specified by:
      beforeUpdate in interface com.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>
      Overrides:
      beforeUpdate in class com.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>
    • afterDelete

      public void afterDelete(UserDirectory entity)
      Specified by:
      afterDelete in interface com.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>
      Overrides:
      afterDelete in class com.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>
    • afterCreate

      public void afterCreate(UserDirectory entity)
      Specified by:
      afterCreate in interface com.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>
      Overrides:
      afterCreate in class com.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>
    • afterDeleteAll

      public void afterDeleteAll(Class<?> entityClass)
      Specified by:
      afterDeleteAll in interface com.foreach.across.modules.hibernate.aop.EntityInterceptor<UserDirectory>
      Overrides:
      afterDeleteAll in class com.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<UserDirectory>