Class InMemorySignedPreKeyStore

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • InMemorySignedPreKeyStore

        InMemorySignedPreKeyStore()
    • Method Detail

      • loadSignedPreKey

         SignedPreKeyRecord loadSignedPreKey(int signedPreKeyId)

        Load a local SignedPreKeyRecord.

        Parameters:
        signedPreKeyId - the ID of the local SignedPreKeyRecord.
        Returns:

        the corresponding SignedPreKeyRecord.

      • storeSignedPreKey

         void storeSignedPreKey(int signedPreKeyId, SignedPreKeyRecord record)

        Store a local SignedPreKeyRecord.

        Parameters:
        signedPreKeyId - the ID of the SignedPreKeyRecord to store.
        record - the SignedPreKeyRecord.
      • containsSignedPreKey

         boolean containsSignedPreKey(int signedPreKeyId)
        Parameters:
        signedPreKeyId - A SignedPreKeyRecord ID.
        Returns:

        true if the store has a record for the signedPreKeyId, otherwise false.

      • removeSignedPreKey

         void removeSignedPreKey(int signedPreKeyId)

        Delete a SignedPreKeyRecord from local storage.

        Parameters:
        signedPreKeyId - The ID of the SignedPreKeyRecord to remove.