Class NetgrifAuthenticationProvider
- java.lang.Object
-
- com.netgrif.application.engine.configuration.authentication.providers.NetgrifAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
- Direct Known Subclasses:
NetgrifBasicAuthenticationProvider
,NetgrifLdapAuthenticationProvider
public abstract class NetgrifAuthenticationProvider extends java.lang.Object implements org.springframework.security.authentication.AuthenticationProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected ILoginAttemptService
loginAttemptService
protected org.springframework.context.ApplicationEventPublisher
publisher
protected javax.servlet.http.HttpServletRequest
request
protected org.springframework.security.core.userdetails.UserDetailsService
userDetailsService
-
Constructor Summary
Constructors Constructor Description NetgrifAuthenticationProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.springframework.security.core.Authentication
authenticate(org.springframework.security.core.Authentication authentication)
protected java.lang.String
getClientIP()
org.springframework.security.core.userdetails.UserDetails
loadUserByUsername(java.lang.String username)
abstract boolean
supports(java.lang.Class<?> authentication)
-
-
-
Field Detail
-
userDetailsService
@Autowired protected org.springframework.security.core.userdetails.UserDetailsService userDetailsService
-
request
@Autowired protected javax.servlet.http.HttpServletRequest request
-
publisher
@Autowired protected org.springframework.context.ApplicationEventPublisher publisher
-
loginAttemptService
@Autowired protected ILoginAttemptService loginAttemptService
-
-
Method Detail
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(java.lang.String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
authenticate
public abstract org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
- Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-
supports
public abstract boolean supports(java.lang.Class<?> authentication)
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-
getClientIP
protected java.lang.String getClientIP()
-
-