Interface UserDirectoryServiceProvider

All Known Implementing Classes:
InternalUserDirectoryServiceProvider

public interface UserDirectoryServiceProvider
SPI for custom UserDirectory implementations that have their own authentication and entity validation rules. The UserDirectoryServiceProviderManager is responsible for keeping track of the different provider instances and providing access to them.
Since:
2.0.0
Author:
Arne Vandamme
See Also:
  • Method Details

    • supports

      boolean supports(Class<? extends UserDirectory> userDirectoryClass)
      Returns true if the UserDirectory implementation type is supported by this provider.
      Parameters:
      userDirectoryClass - user directory implementation
      Returns:
      true if the user directory type is supported
    • getAuthenticationProvider

      org.springframework.security.authentication.AuthenticationProvider getAuthenticationProvider(UserDirectory userDirectory)
      Get the AuthenticationProvider required for authenticating principals for this directory.
      Parameters:
      userDirectory - instance
      Returns:
      provider instance
    • getValidator

      org.springframework.validation.Validator getValidator(UserDirectory userDirectory, Class<? extends BasicSecurityPrincipal> securityPrincipalClass)