Package com.aquima.web.boot.security
Class InMemoryAuthenticationProviderFactory
java.lang.Object
com.aquima.web.boot.security.InMemoryAuthenticationProviderFactory
- All Implemented Interfaces:
AuthenticationProviderFactory
@Component
public class InMemoryAuthenticationProviderFactory
extends Object
implements AuthenticationProviderFactory
-
Constructor Summary
ConstructorsConstructorDescriptionInMemoryAuthenticationProviderFactory
(org.springframework.core.env.Environment env, PasswordEncodersUtil passwordEncodersUtil, org.springframework.security.config.ObjectPostProcessor<Object> objectPostProcessor, SecurityConfigProperties securityConfigProperties) -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.springframework.security.authentication.AuthenticationProvider
Create a new DaoAuthenticationProvider with InMemoryUserDetailsManager populated with the users from specified usersPropertiesboolean
matchesForType
(String typeName)
-
Constructor Details
-
InMemoryAuthenticationProviderFactory
@Autowired public InMemoryAuthenticationProviderFactory(org.springframework.core.env.Environment env, PasswordEncodersUtil passwordEncodersUtil, org.springframework.security.config.ObjectPostProcessor<Object> objectPostProcessor, SecurityConfigProperties securityConfigProperties)
-
-
Method Details
-
create
public org.springframework.security.authentication.AuthenticationProvider create(String authProviderName) throws IOException Create a new DaoAuthenticationProvider with InMemoryUserDetailsManager populated with the users from specified usersProperties- Specified by:
create
in interfaceAuthenticationProviderFactory
- Returns:
- A new AuthenticationProvider backed by specified usersProperties
- Throws:
IOException
-
canCreate
public boolean canCreate()- Specified by:
canCreate
in interfaceAuthenticationProviderFactory
-
matchesForType
- Specified by:
matchesForType
in interfaceAuthenticationProviderFactory
-