MockPrivateKeyStore

class MockPrivateKeyStore(savingException: Throwable? = null, retrievalException: Throwable? = null) : PrivateKeyStore

Constructors

Link copied to clipboard
constructor(savingException: Throwable? = null, retrievalException: Throwable? = null)

Properties

Link copied to clipboard
val identityKeys: MutableMap<String, PrivateKeyData>

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
open suspend override fun deleteBoundSessionKeys(nodeId: String, peerId: String)
Link copied to clipboard
open suspend override fun deleteKeys(nodeId: String)
Link copied to clipboard
Link copied to clipboard
suspend fun retrieveIdentityKey(nodeId: String): PrivateKey
Link copied to clipboard
suspend fun retrieveSessionKey(keyId: ByteArray, nodeId: String, peerId: String): PrivateKey
Link copied to clipboard
suspend fun saveIdentityKey(privateKey: PrivateKey)
Link copied to clipboard
suspend fun saveSessionKey(privateKey: PrivateKey, keyId: ByteArray, nodeId: String, peerId: String?)
Link copied to clipboard
fun setIdentityKey(privateAddress: String, keyData: PrivateKeyData)

Set an identity key, bypassing all the usual validation.

Link copied to clipboard
fun setSessionKey(privateAddress: String, peerId: String?, keyId: String, keySerialized: ByteArray)

Set a session key, bypassing all the usual validation.