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 Summary
Modifier and TypeMethodDescriptionorg.springframework.security.authentication.AuthenticationProvider
getAuthenticationProvider
(UserDirectory userDirectory) Get theAuthenticationProvider
required for authenticating principals for this directory.org.springframework.validation.Validator
getValidator
(UserDirectory userDirectory, Class<? extends BasicSecurityPrincipal> securityPrincipalClass) boolean
supports
(Class<? extends UserDirectory> userDirectoryClass) Returnstrue
if theUserDirectory
implementation type is supported by this provider.
-
Method Details
-
supports
Returnstrue
if theUserDirectory
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 theAuthenticationProvider
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)
-