From 66d8b9d9caa5ebd07cb5c4e1d880e52f03651697 Mon Sep 17 00:00:00 2001 From: Metall <25564543+metallnt@users.noreply.github.com> Date: Wed, 21 Sep 2022 09:29:13 +0500 Subject: [PATCH] Update PasswordVerifier.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Убрал исключения для совместимости --- .../gravit/launchserver/auth/password/PasswordVerifier.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/password/PasswordVerifier.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/password/PasswordVerifier.java index 4f1eaf66..6617f7fc 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/password/PasswordVerifier.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/password/PasswordVerifier.java @@ -2,9 +2,6 @@ import pro.gravit.utils.ProviderMap; -import java.security.NoSuchAlgorithmException; -import java.security.spec.InvalidKeySpecException; - public abstract class PasswordVerifier { public static final ProviderMap providers = new ProviderMap<>("PasswordVerifier"); private static boolean registeredProviders = false; @@ -22,7 +19,7 @@ public static void registerProviders() { } } - public abstract boolean check(String encryptedPassword, String password) throws NoSuchAlgorithmException, InvalidKeySpecException; + public abstract boolean check(String encryptedPassword, String password); public String encrypt(String password) { throw new UnsupportedOperationException();