#358 Create encryption method supertypes, add new methods

This commit is contained in:
ljacqu
2015-12-28 20:10:45 +01:00
parent 31730699ac
commit 48d0a65724
43 changed files with 551 additions and 524 deletions
@@ -1,7 +1,5 @@
package fr.xephi.authme.security.crypts;
import java.security.NoSuchAlgorithmException;
/**
* Public interface for custom password encryption methods.
*/
@@ -16,8 +14,7 @@ public interface EncryptionMethod {
*
* @return The hashed password
*/
String computeHash(String password, String salt, String name)
throws NoSuchAlgorithmException;
String computeHash(String password, String salt, String name);
/**
* Check whether a given hash matches the clear-text password.
@@ -30,7 +27,6 @@ public interface EncryptionMethod {
* @return True if the password matches, false otherwise
*/
@Deprecated
boolean comparePassword(String hash, String password, String playerName)
throws NoSuchAlgorithmException;
boolean comparePassword(String hash, String password, String playerName);
}