Skip to content

Commit 496a2cd

Browse files
committed
Make AuthenticationFilter methods private
Fixes gh-7447
1 parent 05caf3d commit 496a2cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/main/java/org/springframework/security/web/authentication/AuthenticationFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,15 @@ private void unsuccessfulAuthentication(HttpServletRequest request, HttpServletR
158158
this.failureHandler.onAuthenticationFailure(request, response, failed);
159159
}
160160

161-
protected void successfulAuthentication(HttpServletRequest request, HttpServletResponse response, FilterChain chain,
161+
private void successfulAuthentication(HttpServletRequest request, HttpServletResponse response, FilterChain chain,
162162
Authentication authentication) throws IOException, ServletException {
163163
SecurityContext context = SecurityContextHolder.createEmptyContext();
164164
context.setAuthentication(authentication);
165165
SecurityContextHolder.setContext(context);
166166
this.successHandler.onAuthenticationSuccess(request, response, chain, authentication);
167167
}
168168

169-
protected Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)
169+
private Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)
170170
throws AuthenticationException, IOException, ServletException {
171171
Authentication authentication = this.authenticationConverter.convert(request);
172172
if (authentication == null) {

0 commit comments

Comments
 (0)