aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/whispersystems/libaxolotl/state/SignedPreKeyStore.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/SignedPreKeyStore.java
parenta4d8f7f6a4c4e9e89db35f299e558dceee2362a1 (diff)
Break project up into Java and Android build/test.
Diffstat (limited to 'src/main/java/org/whispersystems/libaxolotl/state/SignedPreKeyStore.java')
-rw-r--r--src/main/java/org/whispersystems/libaxolotl/state/SignedPreKeyStore.java47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/main/java/org/whispersystems/libaxolotl/state/SignedPreKeyStore.java b/src/main/java/org/whispersystems/libaxolotl/state/SignedPreKeyStore.java
deleted file mode 100644
index c828bf23..00000000
--- a/src/main/java/org/whispersystems/libaxolotl/state/SignedPreKeyStore.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package org.whispersystems.libaxolotl.state;
-
-import org.whispersystems.libaxolotl.InvalidKeyIdException;
-
-import java.util.List;
-
-public interface SignedPreKeyStore {
-
-
- /**
- * Load a local SignedPreKeyRecord.
- *
- * @param signedPreKeyId the ID of the local SignedPreKeyRecord.
- * @return the corresponding SignedPreKeyRecord.
- * @throws InvalidKeyIdException when there is no corresponding SignedPreKeyRecord.
- */
- public SignedPreKeyRecord loadSignedPreKey(int signedPreKeyId) throws InvalidKeyIdException;
-
- /**
- * Load all local SignedPreKeyRecords.
- *
- * @return All stored SignedPreKeyRecords.
- */
- public List<SignedPreKeyRecord> loadSignedPreKeys();
-
- /**
- * Store a local SignedPreKeyRecord.
- *
- * @param signedPreKeyId the ID of the SignedPreKeyRecord to store.
- * @param record the SignedPreKeyRecord.
- */
- public void storeSignedPreKey(int signedPreKeyId, SignedPreKeyRecord record);
-
- /**
- * @param signedPreKeyId A SignedPreKeyRecord ID.
- * @return true if the store has a record for the signedPreKeyId, otherwise false.
- */
- public boolean containsSignedPreKey(int signedPreKeyId);
-
- /**
- * Delete a SignedPreKeyRecord from local storage.
- *
- * @param signedPreKeyId The ID of the SignedPreKeyRecord to remove.
- */
- public void removeSignedPreKey(int signedPreKeyId);
-
-}