Class NetgrifBasicAuthenticationProvider
- java.lang.Object
-
- com.netgrif.application.engine.configuration.authentication.providers.NetgrifAuthenticationProvider
-
- com.netgrif.application.engine.configuration.authentication.providers.basic.NetgrifBasicAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
@Component public class NetgrifBasicAuthenticationProvider extends NetgrifAuthenticationProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.support.MessageSourceAccessor
messages
protected org.springframework.security.crypto.password.PasswordEncoder
passwordEncoder
protected UserRepository
userRepository
-
Fields inherited from class com.netgrif.application.engine.configuration.authentication.providers.NetgrifAuthenticationProvider
loginAttemptService, publisher, request, userDetailsService
-
-
Constructor Summary
Constructors Constructor Description NetgrifBasicAuthenticationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authentication
authenticate(org.springframework.security.core.Authentication authentication)
void
setPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
boolean
supports(java.lang.Class<?> authentication)
-
Methods inherited from class com.netgrif.application.engine.configuration.authentication.providers.NetgrifAuthenticationProvider
getClientIP, loadUserByUsername
-
-
-
-
Field Detail
-
userRepository
@Autowired protected UserRepository userRepository
-
messages
protected org.springframework.context.support.MessageSourceAccessor messages
-
passwordEncoder
protected org.springframework.security.crypto.password.PasswordEncoder passwordEncoder
-
-
Method Detail
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
- Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Specified by:
authenticate
in classNetgrifAuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
supports
public boolean supports(java.lang.Class<?> authentication)
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Specified by:
supports
in classNetgrifAuthenticationProvider
-
setPasswordEncoder
public void setPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
-
-