aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/whispersystems/libaxolotl/state/PreKeyStore.java
diff options
context:
space:
mode:
authorMoxie Marlinspike <moxie@thoughtcrime.org>2015-01-08 13:48:49 -0800
committerMoxie Marlinspike <moxie@thoughtcrime.org>2015-01-08 14:09:01 -0800
commit6445ea5f13850f42c3952bd06a2369317683ed88 (patch)
treef2bb37c8cf4710ff6a6a37a3e7e702c5a21ca504 /src/main/java/org/whispersystems/libaxolotl/state/PreKeyStore.java
parenta4d8f7f6a4c4e9e89db35f299e558dceee2362a1 (diff)
Break project up into Java and Android build/test.
Diffstat (limited to 'src/main/java/org/whispersystems/libaxolotl/state/PreKeyStore.java')
-rw-r--r--src/main/java/org/whispersystems/libaxolotl/state/PreKeyStore.java42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/main/java/org/whispersystems/libaxolotl/state/PreKeyStore.java b/src/main/java/org/whispersystems/libaxolotl/state/PreKeyStore.java
deleted file mode 100644
index 7dc5e626..00000000
--- a/src/main/java/org/whispersystems/libaxolotl/state/PreKeyStore.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.whispersystems.libaxolotl.state;
-
-import org.whispersystems.libaxolotl.InvalidKeyIdException;
-
-/**
- * An interface describing the local storage of {@link PreKeyRecord}s.
- *
- * @author Moxie Marlinspike
- */
-public interface PreKeyStore {
-
- /**
- * Load a local PreKeyRecord.
- *
- * @param preKeyId the ID of the local PreKeyRecord.
- * @return the corresponding PreKeyRecord.
- * @throws InvalidKeyIdException when there is no corresponding PreKeyRecord.
- */
- public PreKeyRecord loadPreKey(int preKeyId) throws InvalidKeyIdException;
-
- /**
- * Store a local PreKeyRecord.
- *
- * @param preKeyId the ID of the PreKeyRecord to store.
- * @param record the PreKeyRecord.
- */
- public void storePreKey(int preKeyId, PreKeyRecord record);
-
- /**
- * @param preKeyId A PreKeyRecord ID.
- * @return true if the store has a record for the preKeyId, otherwise false.
- */
- public boolean containsPreKey(int preKeyId);
-
- /**
- * Delete a PreKeyRecord from local storage.
- *
- * @param preKeyId The ID of the PreKeyRecord to remove.
- */
- public void removePreKey(int preKeyId);
-
-}