X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fdemoscenemusic%2Fdata%2FUser.java;h=d33daf5d22ab833aa3304b62e0080f3d4ce0416b;hb=552a91b0c8a42edf5e9288f333af9c2d1bbb8ec6;hp=0ca665c5c723cd90c84e57824d8a3173d109116d;hpb=2861e00fac0d584816516f551a46524b5b8ea52e;p=demoscenemusic.git diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/User.java b/src/main/java/net/pterodactylus/demoscenemusic/data/User.java index 0ca665c..d33daf5 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/User.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/User.java @@ -49,6 +49,34 @@ public interface User extends Base { public User setName(String name); /** + * Sets the password of this user. + * + * @param password + * The new password of this user + * @return This user + */ + public User setPassword(String password); + + /** + * Sets the hash of the password of this user. + * + * @param passwordHash + * The hash of the user’s password + * @return This user + */ + public User setPasswordHash(String passwordHash); + + /** + * Verifies the given password. + * + * @param password + * The password to verify + * @return {@code true} if the given password matches the user’s password, + * {@code false} otherwise + */ + public boolean verifyPassword(String password); + + /** * Returns the privilege level of this user. 0 is the level of a normal user * without any special privileges. *