diff --git a/support-portal-backend/src/main/java/net/shyshkin/study/fullstack/supportportal/backend/service/LoginAttemptService.java b/support-portal-backend/src/main/java/net/shyshkin/study/fullstack/supportportal/backend/service/LoginAttemptService.java new file mode 100644 index 0000000..efedd4e --- /dev/null +++ b/support-portal-backend/src/main/java/net/shyshkin/study/fullstack/supportportal/backend/service/LoginAttemptService.java @@ -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); + +}