From 079b20a9fd2f0271cb65aa0e21ca0a02b6502951 Mon Sep 17 00:00:00 2001 From: liaozan <378024053@qq.com> Date: Mon, 8 May 2023 18:19:47 +0800 Subject: [PATCH] Make AbstractAuthenticator#doValidate abstract --- .../web/support/authentication/AbstractAuthenticator.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/commons/web-common/src/main/java/com/schbrain/common/web/support/authentication/AbstractAuthenticator.java b/commons/web-common/src/main/java/com/schbrain/common/web/support/authentication/AbstractAuthenticator.java index 5132f1b..0ee9684 100644 --- a/commons/web-common/src/main/java/com/schbrain/common/web/support/authentication/AbstractAuthenticator.java +++ b/commons/web-common/src/main/java/com/schbrain/common/web/support/authentication/AbstractAuthenticator.java @@ -46,9 +46,7 @@ public abstract class AbstractAuthenticator implements Authenticator { return doValidate(authentication, request, response, handler); } - protected boolean doValidate(String authentication, HttpServletRequest request, HttpServletResponse response, HandlerMethod handler) { - return true; - } + protected abstract boolean doValidate(String authentication, HttpServletRequest request, HttpServletResponse response, HandlerMethod handler); @Nullable protected String getAuthentication(HttpServletRequest request) { -- GitLab