58. Brute force attack cache - Service Interface (#6 Section 8: Brute Force Attack)
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
package net.shyshkin.study.fullstack.supportportal.backend.service;
|
||||
|
||||
public interface LoginAttemptService {
|
||||
|
||||
static final int MAX_ATTEMPTS = 5;
|
||||
static final int ATTEMPT_INCREMENT = 1;
|
||||
|
||||
void loginFailed(String username);
|
||||
|
||||
void loginSucceeded(String username);
|
||||
|
||||
boolean hasExceededMaxAttempts(String username);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user