Interface PreKeyStore
-
- All Implemented Interfaces:
@CalledFromNative() public interface PreKeyStore
An interface describing the local storage of PreKeyRecords.
Moxie Marlinspike
-
-
Method Summary
Modifier and Type Method Description abstract PreKeyRecordloadPreKey(int preKeyId)Load a local PreKeyRecord. abstract voidstorePreKey(int preKeyId, PreKeyRecord record)Store a local PreKeyRecord. abstract booleancontainsPreKey(int preKeyId)abstract voidremovePreKey(int preKeyId)Delete a PreKeyRecord from local storage. -
-
Method Detail
-
loadPreKey
abstract PreKeyRecord loadPreKey(int preKeyId)
Load a local PreKeyRecord.
- Parameters:
preKeyId- the ID of the local PreKeyRecord.- Returns:
the corresponding PreKeyRecord.
-
storePreKey
abstract void storePreKey(int preKeyId, PreKeyRecord record)
Store a local PreKeyRecord.
- Parameters:
preKeyId- the ID of the PreKeyRecord to store.record- the PreKeyRecord.
-
containsPreKey
abstract boolean containsPreKey(int preKeyId)
- Parameters:
preKeyId- A PreKeyRecord ID.- Returns:
true if the store has a record for the preKeyId, otherwise false.
-
removePreKey
abstract void removePreKey(int preKeyId)
Delete a PreKeyRecord from local storage.
- Parameters:
preKeyId- The ID of the PreKeyRecord to remove.
-
-
-
-