Class InMemorySignedPreKeyStore

    • Constructor Detail

      • InMemorySignedPreKeyStore

        public InMemorySignedPreKeyStore()
    • Method Detail

      • storeSignedPreKey

        public void storeSignedPreKey​(int signedPreKeyId,
                                      SignedPreKeyRecord record)
        Description copied from interface: SignedPreKeyStore
        Store a local SignedPreKeyRecord.
        Specified by:
        storeSignedPreKey in interface SignedPreKeyStore
        Parameters:
        signedPreKeyId - the ID of the SignedPreKeyRecord to store.
        record - the SignedPreKeyRecord.
      • containsSignedPreKey

        public boolean containsSignedPreKey​(int signedPreKeyId)
        Specified by:
        containsSignedPreKey in interface SignedPreKeyStore
        Parameters:
        signedPreKeyId - A SignedPreKeyRecord ID.
        Returns:
        true if the store has a record for the signedPreKeyId, otherwise false.
      • removeSignedPreKey

        public void removeSignedPreKey​(int signedPreKeyId)
        Description copied from interface: SignedPreKeyStore
        Delete a SignedPreKeyRecord from local storage.
        Specified by:
        removeSignedPreKey in interface SignedPreKeyStore
        Parameters:
        signedPreKeyId - The ID of the SignedPreKeyRecord to remove.