mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-08 09:58:56 +08:00
Update AuthenticationProviderFactory.java
This commit is contained in:
parent
e24b598257
commit
d6856b1f54
@ -13,9 +13,9 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* 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.AbstractAuthenticationProvider;
|
||||||
import org.maxkey.authn.LoginCredential;
|
import org.maxkey.authn.LoginCredential;
|
||||||
@ -23,8 +23,8 @@ import org.springframework.security.core.Authentication;
|
|||||||
|
|
||||||
public class AuthenticationProviderFactory extends AbstractAuthenticationProvider {
|
public class AuthenticationProviderFactory extends AbstractAuthenticationProvider {
|
||||||
|
|
||||||
private static HashMap<String,AbstractAuthenticationProvider> providers =
|
private static ConcurrentHashMap<String,AbstractAuthenticationProvider> providers =
|
||||||
new HashMap<String,AbstractAuthenticationProvider>();
|
new ConcurrentHashMap<String,AbstractAuthenticationProvider>();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Authentication authenticate(LoginCredential authentication){
|
public Authentication authenticate(LoginCredential authentication){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user