public static final class DerivedPasswordCache.Default extends java.lang.Object implements DerivedPasswordCache
DerivedPasswordCacheDerivedPasswordCache.Default| Constructor and Description |
|---|
Default(boolean enabled,
java.security.SecureRandom secureRandom) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
get(byte[] salt,
char[] rawData)
Get the derived bytes from given salt and password.
|
void |
put(byte[] salt,
char[] rawData,
byte[] value)
Put a new stretched password with given salt in the cache
|
void |
wipe()
Overwrite and remove whole cache
|
public byte[] get(byte[] salt,
char[] rawData)
DerivedPasswordCacheget in interface DerivedPasswordCachesalt - the used salt for the stretching function - key part 2 of the internal key-value storagerawData - the used password - key part 2 of the internal key-value storagepublic void put(byte[] salt,
char[] rawData,
byte[] value)
DerivedPasswordCacheput in interface DerivedPasswordCachesalt - the used salt for the stretching function - key part 2 of the internal key-value storagerawData - the used password - key part 2 of the internal key-value storagevalue - the stretched bytespublic void wipe()
DerivedPasswordCachewipe in interface DerivedPasswordCache