public final class Biff8EncryptionKey
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Biff8EncryptionKey |
create(byte[] docId)
Create using the default password and a specified docId
|
static Biff8EncryptionKey |
create(java.lang.String password,
byte[] docIdData) |
static java.lang.String |
getCurrentUserPassword() |
static void |
setCurrentUserPassword(java.lang.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(java.lang.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(java.lang.String password)
password
- pass null
to clear user password (and use default)public static java.lang.String getCurrentUserPassword()
null
if it is currently unset.Copyright © 2005-2010 Potix Corporation. All Rights Reserved.