All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.whispersystems.signalservice.api.SignalServicePreKeyStore.kt Maven / Gradle / Ivy

There is a newer version: 2.15.3_unofficial_107
Show newest version
package org.whispersystems.signalservice.api

import org.signal.libsignal.protocol.state.PreKeyStore

/**
 * And extension of the normal protocol prekey store interface that has additional methods that are
 * needed in the service layer, but not the protocol layer.
 */
interface SignalServicePreKeyStore : PreKeyStore {
  /**
   * Marks all prekeys stale if they haven't been marked already. "Stale" means the time that the keys have been replaced.
   */
  fun markAllOneTimeEcPreKeysStaleIfNecessary(staleTime: Long)

  /**
   * Deletes all prekeys that have been stale since before the threshold. "Stale" means the time that the keys have been replaced.
   */
  fun deleteAllStaleOneTimeEcPreKeys(threshold: Long, minCount: Int)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy