From 496a2cdc60f47e58e6d7949d250d32116f81c69d Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Tue, 17 Sep 2019 08:06:21 -0600 Subject: [PATCH] Make AuthenticationFilter methods private Fixes gh-7447 --- .../security/web/authentication/AuthenticationFilter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/main/java/org/springframework/security/web/authentication/AuthenticationFilter.java b/web/src/main/java/org/springframework/security/web/authentication/AuthenticationFilter.java index 0f539842f0..dd06211826 100644 --- a/web/src/main/java/org/springframework/security/web/authentication/AuthenticationFilter.java +++ b/web/src/main/java/org/springframework/security/web/authentication/AuthenticationFilter.java @@ -158,7 +158,7 @@ public class AuthenticationFilter extends OncePerRequestFilter { this.failureHandler.onAuthenticationFailure(request, response, failed); } - protected void successfulAuthentication(HttpServletRequest request, HttpServletResponse response, FilterChain chain, + private void successfulAuthentication(HttpServletRequest request, HttpServletResponse response, FilterChain chain, Authentication authentication) throws IOException, ServletException { SecurityContext context = SecurityContextHolder.createEmptyContext(); context.setAuthentication(authentication); @@ -166,7 +166,7 @@ public class AuthenticationFilter extends OncePerRequestFilter { this.successHandler.onAuthenticationSuccess(request, response, chain, authentication); } - protected Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) + private Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) throws AuthenticationException, IOException, ServletException { Authentication authentication = this.authenticationConverter.convert(request); if (authentication == null) {