Prepare the project for javadocs
This commit is contained in:
@@ -13,6 +13,8 @@ import java.security.NoSuchAlgorithmException;
|
||||
* <p>
|
||||
* The comparePassword is called when we need to match password (/login usually)
|
||||
* </p>
|
||||
* @author Gabriele
|
||||
* @version $Revision: 1.0 $
|
||||
*/
|
||||
public interface EncryptionMethod {
|
||||
|
||||
@@ -21,9 +23,10 @@ public interface EncryptionMethod {
|
||||
* @param salt
|
||||
* (can be an other data like playerName;salt , playerName,
|
||||
* etc... for customs methods)
|
||||
* @return Hashing password
|
||||
* @throws NoSuchAlgorithmException
|
||||
*/
|
||||
|
||||
|
||||
* @param name String
|
||||
* @return Hashing password * @throws NoSuchAlgorithmException */
|
||||
String getHash(String password, String salt, String name)
|
||||
throws NoSuchAlgorithmException;
|
||||
|
||||
@@ -31,9 +34,9 @@ public interface EncryptionMethod {
|
||||
* @param hash
|
||||
* @param password
|
||||
* @param playerName
|
||||
* @return true if password match, false else
|
||||
* @throws NoSuchAlgorithmException
|
||||
*/
|
||||
|
||||
|
||||
* @return true if password match, false else * @throws NoSuchAlgorithmException */
|
||||
boolean comparePassword(String hash, String password, String playerName)
|
||||
throws NoSuchAlgorithmException;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user