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 30c352e9..4f1eaf66 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,6 +2,9 @@ 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; @@ -14,11 +17,12 @@ public static void registerProviders() { providers.register("json", JsonPasswordVerifier.class); providers.register("accept", AcceptPasswordVerifier.class); providers.register("reject", RejectPasswordVerifier.class); + providers.register("django", DjangoPasswordVerifier.class); registeredProviders = true; } } - public abstract boolean check(String encryptedPassword, String password); + public abstract boolean check(String encryptedPassword, String password) throws NoSuchAlgorithmException, InvalidKeySpecException; public String encrypt(String password) { throw new UnsupportedOperationException();