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) voidonApplicationEvent(org.springframework.security.authentication.event.AbstractAuthenticationEvent authenticationEvent) voidregisterAttempt(StandardUser user, LoginAttemptService.LoginAttempt loginAttempt)
-
Constructor Details
-
SpringLoginAttemptService
public SpringLoginAttemptService(org.springframework.security.provisioning.UserDetailsManager userDetailsManager)
-
-
Method Details
-
registerAttempt
- Specified by:
registerAttemptin interfaceLoginAttemptService
-
getLoginAttempts
public List<LoginAttemptService.LoginAttempt> getLoginAttempts(StandardUser user, int numberOfAttempts) - Specified by:
getLoginAttemptsin interfaceLoginAttemptService
-
getLoginAttempts
public List<LoginAttemptService.LoginAttempt> getLoginAttempts(StandardUser user, Range<Instant> range) - Specified by:
getLoginAttemptsin interfaceLoginAttemptService
-
onApplicationEvent
public void onApplicationEvent(org.springframework.security.authentication.event.AbstractAuthenticationEvent authenticationEvent) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.security.authentication.event.AbstractAuthenticationEvent>
-