Class InternalUserDirectoryServiceProvider
java.lang.Object
com.foreach.across.modules.user.services.InternalUserDirectoryServiceProvider
- All Implemented Interfaces:
UserDirectoryServiceProvider
public class InternalUserDirectoryServiceProvider
extends Object
implements UserDirectoryServiceProvider
Default
UserDirectoryServiceProvider
that supports the
InternalUserDirectory
.- Since:
- 2.0.0
- Author:
- Arne Vandamme
-
Constructor Summary
-
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.
-
Constructor Details
-
InternalUserDirectoryServiceProvider
public InternalUserDirectoryServiceProvider()
-
-
Method Details
-
supports
Description copied from interface:UserDirectoryServiceProvider
Returnstrue
if theUserDirectory
implementation type is supported by this provider.- Specified by:
supports
in interfaceUserDirectoryServiceProvider
- Parameters:
userDirectoryClass
- user directory implementation- Returns:
true
if the user directory type is supported
-
getAuthenticationProvider
public org.springframework.security.authentication.AuthenticationProvider getAuthenticationProvider(UserDirectory userDirectory) Description copied from interface:UserDirectoryServiceProvider
Get theAuthenticationProvider
required for authenticating principals for this directory.- Specified by:
getAuthenticationProvider
in interfaceUserDirectoryServiceProvider
- Parameters:
userDirectory
- instance- Returns:
- provider instance
-
getValidator
public org.springframework.validation.Validator getValidator(UserDirectory userDirectory, Class<? extends BasicSecurityPrincipal> securityPrincipalClass) - Specified by:
getValidator
in interfaceUserDirectoryServiceProvider
-