public interface DerivedPasswordCache
| Modifier and Type | Interface and Description |
|---|---|
static class |
DerivedPasswordCache.Default
Standard implementation of
DerivedPasswordCache |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
get(byte[] salt,
char[] pw)
Get the derived bytes from given salt and password.
|
void |
put(byte[] salt,
char[] pw,
byte[] value)
Put a new stretched password with given salt in the cache
|
void |
wipe()
Overwrite and remove whole cache
|
byte[] get(byte[] salt,
char[] pw)
salt - the used salt for the stretching function - key part 2 of the internal key-value storagepw - the used password - key part 2 of the internal key-value storagevoid put(byte[] salt,
char[] pw,
byte[] value)
salt - the used salt for the stretching function - key part 2 of the internal key-value storagepw - the used password - key part 2 of the internal key-value storagevalue - the stretched bytesvoid wipe()