mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Use Android keystore for encrypting DB key.
Only for new accounts on API 23+.
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
package org.briarproject.briar.headless
|
||||
|
||||
import org.briarproject.bramble.api.crypto.KeyStoreConfig
|
||||
import org.briarproject.bramble.api.db.DatabaseConfig
|
||||
import java.io.File
|
||||
|
||||
internal class HeadlessDatabaseConfig(private val dbDir: File, private val keyDir: File) :
|
||||
DatabaseConfig {
|
||||
|
||||
override fun getDatabaseDirectory(): File {
|
||||
return dbDir
|
||||
}
|
||||
override fun getDatabaseDirectory() = dbDir
|
||||
|
||||
override fun getDatabaseKeyDirectory(): File {
|
||||
return keyDir
|
||||
}
|
||||
override fun getDatabaseKeyDirectory() = keyDir
|
||||
|
||||
override fun getKeyStoreConfig(): KeyStoreConfig? = null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user