Add database method for getting transports with keys.

This commit is contained in:
akwizgran
2021-05-17 16:23:54 +01:00
committed by Torsten Grote
parent 68acbe5c7d
commit b3c105bfa7
5 changed files with 65 additions and 0 deletions

View File

@@ -493,6 +493,16 @@ public interface DatabaseComponent extends TransactionManager {
Collection<TransportKeySet> getTransportKeys(Transaction txn, TransportId t)
throws DbException;
/**
* Returns the contact IDs and transport IDs for which the DB contains
* at least one set of transport keys. Handshake mode and rotation mode
* keys are included, whether activated or not.
* <p/>
* Read-only.
*/
Map<ContactId, Collection<TransportId>> getTransportsWithKeys(
Transaction txn) throws DbException;
/**
* Increments the outgoing stream counter for the given transport keys.
*/