public final class Biff8EncryptionKey extends Object
Modifier and Type | Method and Description |
---|---|
static Biff8EncryptionKey |
create(byte[] docId)
Create using the default password and a specified docId
|
static Biff8EncryptionKey |
create(String password,
byte[] docIdData) |
static String |
getCurrentUserPassword() |
static void |
setCurrentUserPassword(String password)
Sets the BIFF8 encryption/decryption password for the current thread.
|
boolean |
validate(byte[] saltData,
byte[] saltHash) |
public static Biff8EncryptionKey create(byte[] docId)
docId
- 16 bytespublic static Biff8EncryptionKey create(String password, byte[] docIdData)
public boolean validate(byte[] saltData, byte[] saltHash)
true
if the keyDigest is compatible with the specified saltData and saltHashpublic static void setCurrentUserPassword(String password)
password
- pass null
to clear user password (and use default)public static String getCurrentUserPassword()
null
if it is currently unset.Copyright © 2020. All rights reserved.