public class AuthHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AuthHelper.PasswordOptions |
Constructor and Description |
---|
AuthHelper() |
Modifier and Type | Method and Description |
---|---|
static AuthHelper.PasswordOptions |
checkPassword(java.lang.String uuid,
char[] password)
Checks password of user
|
static java.lang.String |
hashPassword(char[] password)
Hashes password with algorithm, depending on config
|
public static AuthHelper.PasswordOptions checkPassword(java.lang.String uuid, char[] password)
uuid
- uuid of player, stored in databasepassword
- password that needs to be checkedpublic static java.lang.String hashPassword(char[] password)
password
- character array of password string