public interface EncryptableStore
| Modifier and Type | Method and Description |
|---|---|
Action |
actionToChangeEncryptionKey(SymmetricKey newKey)
Action for changing the encryption key of the storage.
|
byte[] |
derivePBKDF2SHA256Key(java.lang.String password,
byte[] salt,
int rounds)
A utility method for deriving PBKDF2-SHA256 based key from the password.
|
SymmetricKey |
getEncryptionKey()
Return current encryption key
|
void |
setEncryptionKey(SymmetricKey key)
Set encryption key for opening the storage.
|
void setEncryptionKey(SymmetricKey key)
key - a SymmetricKey objectSymmetricKey getEncryptionKey()
Action actionToChangeEncryptionKey(SymmetricKey newKey)
newKey - a new SymmetricKey objectbyte[] derivePBKDF2SHA256Key(java.lang.String password,
byte[] salt,
int rounds)
throws CouchbaseLiteException
password - passwordsalt - saltrounds - number of roundsCouchbaseLiteException