Class SpringLoginAttemptService
java.lang.Object
eu.rarogsoftware.rarog.platform.app.security.SpringLoginAttemptService
- All Implemented Interfaces:
LoginAttemptService
,EventListener
,org.springframework.context.ApplicationListener<org.springframework.security.authentication.event.AbstractAuthenticationEvent>
@Component
public class SpringLoginAttemptService
extends Object
implements LoginAttemptService, org.springframework.context.ApplicationListener<org.springframework.security.authentication.event.AbstractAuthenticationEvent>
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.rarogsoftware.rarog.platform.core.security.LoginAttemptService
LoginAttemptService.LoginAttempt
-
Constructor Summary
ConstructorsConstructorDescriptionSpringLoginAttemptService
(org.springframework.security.provisioning.UserDetailsManager userDetailsManager) -
Method Summary
Modifier and TypeMethodDescriptiongetLoginAttempts
(StandardUser user, int numberOfAttempts) getLoginAttempts
(StandardUser user, Range<Instant> range) void
onApplicationEvent
(org.springframework.security.authentication.event.AbstractAuthenticationEvent authenticationEvent) void
registerAttempt
(StandardUser user, LoginAttemptService.LoginAttempt loginAttempt)
-
Constructor Details
-
SpringLoginAttemptService
public SpringLoginAttemptService(org.springframework.security.provisioning.UserDetailsManager userDetailsManager)
-
-
Method Details
-
registerAttempt
- Specified by:
registerAttempt
in interfaceLoginAttemptService
-
getLoginAttempts
public List<LoginAttemptService.LoginAttempt> getLoginAttempts(StandardUser user, int numberOfAttempts) - Specified by:
getLoginAttempts
in interfaceLoginAttemptService
-
getLoginAttempts
public List<LoginAttemptService.LoginAttempt> getLoginAttempts(StandardUser user, Range<Instant> range) - Specified by:
getLoginAttempts
in interfaceLoginAttemptService
-
onApplicationEvent
public void onApplicationEvent(org.springframework.security.authentication.event.AbstractAuthenticationEvent authenticationEvent) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.security.authentication.event.AbstractAuthenticationEvent>
-