Package io.jmix.core.security
Class PreAuthenticationChecks
java.lang.Object
io.jmix.core.security.PreAuthenticationChecks
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsChecker
public class PreAuthenticationChecks
extends Object
implements org.springframework.security.core.userdetails.UserDetailsChecker
Verifies the status of the loaded UserDetails before validation of the credentials takes place.
See
AbstractUserDetailsAuthenticationProvider.setPreAuthenticationChecks(UserDetailsChecker)
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
check
(org.springframework.security.core.userdetails.UserDetails user) protected void
firePreAuthenticationCheckEvent
(org.springframework.security.core.userdetails.UserDetails user) void
setEventPublisher
(org.springframework.context.ApplicationEventPublisher eventPublisher)
-
Constructor Details
-
PreAuthenticationChecks
public PreAuthenticationChecks()
-
-
Method Details
-
setEventPublisher
@Autowired public void setEventPublisher(org.springframework.context.ApplicationEventPublisher eventPublisher) -
check
public void check(org.springframework.security.core.userdetails.UserDetails user) - Specified by:
check
in interfaceorg.springframework.security.core.userdetails.UserDetailsChecker
-
firePreAuthenticationCheckEvent
protected void firePreAuthenticationCheckEvent(org.springframework.security.core.userdetails.UserDetails user)
-