Interface PreKeyStore

    • Method Detail

      • loadPreKey

        PreKeyRecord loadPreKey​(int preKeyId)
                         throws InvalidKeyIdException
        Load a local PreKeyRecord.
        Parameters:
        preKeyId - the ID of the local PreKeyRecord.
        Returns:
        the corresponding PreKeyRecord.
        Throws:
        InvalidKeyIdException - when there is no corresponding PreKeyRecord.
      • storePreKey

        void storePreKey​(int preKeyId,
                         PreKeyRecord record)
        Store a local PreKeyRecord.
        Parameters:
        preKeyId - the ID of the PreKeyRecord to store.
        record - the PreKeyRecord.
      • containsPreKey

        boolean containsPreKey​(int preKeyId)
        Parameters:
        preKeyId - A PreKeyRecord ID.
        Returns:
        true if the store has a record for the preKeyId, otherwise false.
      • removePreKey

        void removePreKey​(int preKeyId)
        Delete a PreKeyRecord from local storage.
        Parameters:
        preKeyId - The ID of the PreKeyRecord to remove.