Package org.signal.libsignal.keytrans
Interface Store
-
- All Implemented Interfaces:
public interface StoreInterface of a local persistent key transparency data store.
Contents of the store are opaque to the client and are only supposed to be used by the .
ByteBuffer is used for the keys because of its hashing semantics. Alternative default implementations accepting byte arrays are provided for convenience.
It is safe to assume that
nullwill never be passed to any of the parameters.Note: depending on the usage of org.signal.libsignal.net.KeyTransparencyClient APIs,
Storemethods may be invoked from multiple threads.
-
-
Method Summary
Modifier and Type Method Description abstract Optional<Array<byte>>getLastDistinguishedTreeHead()abstract voidsetLastDistinguishedTreeHead(Array<byte> lastDistinguishedTreeHead)abstract Optional<Array<byte>>getAccountData(ServiceId.Aci aci)abstract voidsetAccountData(ServiceId.Aci aci, Array<byte> data)-
-
Method Detail
-
getLastDistinguishedTreeHead
abstract Optional<Array<byte>> getLastDistinguishedTreeHead()
-
setLastDistinguishedTreeHead
abstract void setLastDistinguishedTreeHead(Array<byte> lastDistinguishedTreeHead)
-
getAccountData
abstract Optional<Array<byte>> getAccountData(ServiceId.Aci aci)
-
setAccountData
abstract void setAccountData(ServiceId.Aci aci, Array<byte> data)
-
-
-
-