public class Password
extends java.lang.Object
| Constructor and Description |
|---|
Password() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
check(char[] password,
java.lang.String stored) |
static char[] |
generateRandomPassword(int min,
int max) |
static java.lang.String |
getSaltedHash(char[] password) |
protected static java.lang.String |
getSaltedHash(char[] password,
boolean base64) |
public static char[] generateRandomPassword(int min,
int max)
public static java.lang.String getSaltedHash(char[] password)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionprotected static java.lang.String getSaltedHash(char[] password,
boolean base64)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic static boolean check(char[] password,
java.lang.String stored)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityException