Class InMemoryPreKeyStore
-
- All Implemented Interfaces:
-
org.signal.libsignal.protocol.state.PreKeyStore
public class InMemoryPreKeyStore implements PreKeyStore
-
-
Constructor Summary
Constructors Constructor Description InMemoryPreKeyStore()
-
Method Summary
Modifier and Type Method Description PreKeyRecordloadPreKey(int preKeyId)Load a local PreKeyRecord. voidstorePreKey(int preKeyId, PreKeyRecord record)Store a local PreKeyRecord. booleancontainsPreKey(int preKeyId)voidremovePreKey(int preKeyId)Delete a PreKeyRecord from local storage. -
-
Method Detail
-
loadPreKey
PreKeyRecord loadPreKey(int preKeyId)
Load a local PreKeyRecord.
- Parameters:
preKeyId- the ID of the local PreKeyRecord.- Returns:
the corresponding PreKeyRecord.
-
storePreKey
void storePreKey(int preKeyId, PreKeyRecord record)
Store a local PreKeyRecord.
- Parameters:
preKeyId- the ID of the PreKeyRecord to store.record- the PreKeyRecord.
-
containsPreKey
boolean containsPreKey(int preKeyId)
- Parameters:
preKeyId- A PreKeyRecord ID.- Returns:
true if the store has a record for the preKeyId, otherwise false.
-
removePreKey
void removePreKey(int preKeyId)
Delete a PreKeyRecord from local storage.
- Parameters:
preKeyId- The ID of the PreKeyRecord to remove.
-
-
-
-