From 5661e06e9c4aee7798e7a6c1585be73e23df37c2 Mon Sep 17 00:00:00 2001 From: Eleftheria Stein Date: Mon, 9 Nov 2020 13:13:32 +0100 Subject: [PATCH] Fix typo UserDetailService -> UserDetailsService --- .../AuthenticationProviderBeanDefinitionParser.java | 2 +- .../web/authentication/switchuser/SwitchUserFilter.java | 2 +- .../web/server/authentication/SwitchUserWebFilter.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/src/main/java/org/springframework/security/config/authentication/AuthenticationProviderBeanDefinitionParser.java b/config/src/main/java/org/springframework/security/config/authentication/AuthenticationProviderBeanDefinitionParser.java index 973edde649..e5970adef7 100644 --- a/config/src/main/java/org/springframework/security/config/authentication/AuthenticationProviderBeanDefinitionParser.java +++ b/config/src/main/java/org/springframework/security/config/authentication/AuthenticationProviderBeanDefinitionParser.java @@ -74,7 +74,7 @@ public class AuthenticationProviderBeanDefinitionParser implements BeanDefinitio else { pc.getReaderContext().error("A user-service is required", element); } - // Pinch the cache-ref from the UserDetailService element, if set. + // Pinch the cache-ref from the UserDetailsService element, if set. String cacheRef = userServiceElt.getAttribute(AbstractUserDetailsServiceBeanDefinitionParser.CACHE_REF); if (StringUtils.hasText(cacheRef)) { diff --git a/web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java b/web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java index 11e1ed94ba..2d05560df9 100644 --- a/web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java +++ b/web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java @@ -371,7 +371,7 @@ public class SwitchUserFilter extends GenericFilterBean implements ApplicationEv /** * Sets the authentication data access object. - * @param userDetailsService The UserDetailService which will be used to load + * @param userDetailsService The UserDetailsService which will be used to load * information for the user that is being switched to. */ public void setUserDetailsService(UserDetailsService userDetailsService) { diff --git a/web/src/main/java/org/springframework/security/web/server/authentication/SwitchUserWebFilter.java b/web/src/main/java/org/springframework/security/web/server/authentication/SwitchUserWebFilter.java index 410da7cb6c..bdc632a03e 100644 --- a/web/src/main/java/org/springframework/security/web/server/authentication/SwitchUserWebFilter.java +++ b/web/src/main/java/org/springframework/security/web/server/authentication/SwitchUserWebFilter.java @@ -115,7 +115,7 @@ public class SwitchUserWebFilter implements WebFilter { /** * Creates a filter for the user context switching - * @param userDetailsService The UserDetailService which will be used to load + * @param userDetailsService The UserDetailsService which will be used to load * information for the user that is being switched to. * @param successHandler Used to define custom behaviour on a successful switch or * exit user. @@ -135,7 +135,7 @@ public class SwitchUserWebFilter implements WebFilter { /** * Creates a filter for the user context switching - * @param userDetailsService The UserDetailService which will be used to load + * @param userDetailsService The UserDetailsService which will be used to load * information for the user that is being switched to. * @param successTargetUrl Sets the URL to go to after a successful switch / exit user * request