Update PasswordVerifier.java

Убрал исключения для совместимости
This commit is contained in:
Metall 2022-09-21 09:29:13 +05:00 committed by GitHub
parent 90ee90973e
commit 66d8b9d9ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<PasswordVerifier> 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();