public class InMemoryPreKeyStore extends java.lang.Object implements PreKeyStore
| Constructor and Description |
|---|
InMemoryPreKeyStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPreKey(int preKeyId) |
PreKeyRecord |
loadPreKey(int preKeyId)
Load a local PreKeyRecord.
|
void |
removePreKey(int preKeyId)
Delete a PreKeyRecord from local storage.
|
void |
storePreKey(int preKeyId,
PreKeyRecord record)
Store a local PreKeyRecord.
|
public PreKeyRecord loadPreKey(int preKeyId) throws InvalidKeyIdException
PreKeyStoreloadPreKey in interface PreKeyStorepreKeyId - the ID of the local PreKeyRecord.InvalidKeyIdException - when there is no corresponding PreKeyRecord.public void storePreKey(int preKeyId,
PreKeyRecord record)
PreKeyStorestorePreKey in interface PreKeyStorepreKeyId - the ID of the PreKeyRecord to store.record - the PreKeyRecord.public boolean containsPreKey(int preKeyId)
containsPreKey in interface PreKeyStorepreKeyId - A PreKeyRecord ID.public void removePreKey(int preKeyId)
PreKeyStoreremovePreKey in interface PreKeyStorepreKeyId - The ID of the PreKeyRecord to remove.