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.MessageSourceAccessormessagesprotected org.springframework.security.crypto.password.PasswordEncoderpasswordEncoderprotected UserRepositoryuserRepository-
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.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)voidsetPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)booleansupports(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:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Specified by:
authenticatein classNetgrifAuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
supports
public boolean supports(java.lang.Class<?> authentication)
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider- Specified by:
supportsin classNetgrifAuthenticationProvider
-
setPasswordEncoder
public void setPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
-
-