Modifier and Type | Field and Description |
---|---|
static int |
HASH_BYTE_SIZE |
static int |
ITERATION_INDEX |
static java.lang.String |
PBKDF2_ALGORITHM |
static int |
PBKDF2_INDEX |
static int |
PBKDF2_ITERATIONS |
static int |
SALT_BYTE_SIZE |
static int |
SALT_INDEX |
Constructor and Description |
---|
PBKDF2Hash() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(java.lang.String plaintext) |
boolean |
matchesAlgorithm(java.lang.String password) |
boolean |
validate(java.lang.String plaintext,
java.lang.String hash) |
public static final java.lang.String PBKDF2_ALGORITHM
public static final int SALT_BYTE_SIZE
public static final int HASH_BYTE_SIZE
public static final int PBKDF2_ITERATIONS
public static final int ITERATION_INDEX
public static final int SALT_INDEX
public static final int PBKDF2_INDEX
public java.lang.String create(java.lang.String plaintext) throws ServerFault
create
in interface Hash
ServerFault
public boolean validate(java.lang.String plaintext, java.lang.String hash) throws ServerFault
validate
in interface Hash
ServerFault
public boolean matchesAlgorithm(java.lang.String password)
matchesAlgorithm
in interface Hash
Copyright © 2021. All Rights Reserved.