Interface SignedPreKeyStore
-
- All Implemented Interfaces:
@CalledFromNative() public interface SignedPreKeyStore
-
-
Method Summary
Modifier and Type Method Description abstract SignedPreKeyRecordloadSignedPreKey(int signedPreKeyId)Load a local SignedPreKeyRecord. abstract List<SignedPreKeyRecord>loadSignedPreKeys()Load all local SignedPreKeyRecords. abstract voidstoreSignedPreKey(int signedPreKeyId, SignedPreKeyRecord record)Store a local SignedPreKeyRecord. abstract booleancontainsSignedPreKey(int signedPreKeyId)abstract voidremoveSignedPreKey(int signedPreKeyId)Delete a SignedPreKeyRecord from local storage. -
-
Method Detail
-
loadSignedPreKey
abstract SignedPreKeyRecord loadSignedPreKey(int signedPreKeyId)
Load a local SignedPreKeyRecord.
- Parameters:
signedPreKeyId- the ID of the local SignedPreKeyRecord.- Returns:
the corresponding SignedPreKeyRecord.
-
loadSignedPreKeys
abstract List<SignedPreKeyRecord> loadSignedPreKeys()
Load all local SignedPreKeyRecords.
- Returns:
All stored SignedPreKeyRecords.
-
storeSignedPreKey
abstract void storeSignedPreKey(int signedPreKeyId, SignedPreKeyRecord record)
Store a local SignedPreKeyRecord.
- Parameters:
signedPreKeyId- the ID of the SignedPreKeyRecord to store.record- the SignedPreKeyRecord.
-
containsSignedPreKey
abstract boolean containsSignedPreKey(int signedPreKeyId)
- Parameters:
signedPreKeyId- A SignedPreKeyRecord ID.- Returns:
true if the store has a record for the signedPreKeyId, otherwise false.
-
removeSignedPreKey
abstract void removeSignedPreKey(int signedPreKeyId)
Delete a SignedPreKeyRecord from local storage.
- Parameters:
signedPreKeyId- The ID of the SignedPreKeyRecord to remove.
-
-
-
-