58. Brute force attack cache - Service Interface (#6 Section 8: Brute Force Attack)

This commit is contained in:
Art
2021-09-08 13:38:30 +03:00
parent ad785f05b1
commit 142eae06df

View File

@ -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);
}