From d6856b1f544f6a7b487f003b9128d68c7b474142 Mon Sep 17 00:00:00 2001 From: MaxKey Date: Mon, 25 Apr 2022 10:52:25 +0800 Subject: [PATCH] Update AuthenticationProviderFactory.java --- .../authn/provider/AuthenticationProviderFactory.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maxkey-authentications/maxkey-authentication-core/src/main/java/org/maxkey/authn/provider/AuthenticationProviderFactory.java b/maxkey-authentications/maxkey-authentication-core/src/main/java/org/maxkey/authn/provider/AuthenticationProviderFactory.java index ab1415708..31449ea2c 100644 --- a/maxkey-authentications/maxkey-authentication-core/src/main/java/org/maxkey/authn/provider/AuthenticationProviderFactory.java +++ b/maxkey-authentications/maxkey-authentication-core/src/main/java/org/maxkey/authn/provider/AuthenticationProviderFactory.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.maxkey.authn.provider; +package org.maxkey.authn.provider; -import java.util.HashMap; +import java.util.concurrent.ConcurrentHashMap; import org.maxkey.authn.AbstractAuthenticationProvider; import org.maxkey.authn.LoginCredential; @@ -23,8 +23,8 @@ import org.springframework.security.core.Authentication; public class AuthenticationProviderFactory extends AbstractAuthenticationProvider { - private static HashMap providers = - new HashMap(); + private static ConcurrentHashMap providers = + new ConcurrentHashMap(); @Override public Authentication authenticate(LoginCredential authentication){