Second part of key rotation implementation. Work in progress.

This commit is contained in:
akwizgran
2012-10-08 18:15:25 +01:00
parent 021b3c5a62
commit 7739bcdd06
8 changed files with 291 additions and 76 deletions

View File

@@ -1,5 +1,6 @@
package net.sf.briar.api.transport;
import net.sf.briar.api.ContactId;
import net.sf.briar.api.db.DbException;
import net.sf.briar.api.protocol.TransportId;
@@ -14,5 +15,12 @@ public interface ConnectionRecogniser {
* expected, or null if the connection was not expected.
*/
ConnectionContext acceptConnection(TransportId t, byte[] tag)
throws DbException;
throws DbException;
void addWindow(ContactId c, TransportId t, long period, boolean alice,
byte[] secret, long centre, byte[] bitmap) throws DbException;
void removeWindow(ContactId c, TransportId t, long period);
void removeWindows(ContactId c);
}

View File

@@ -1,12 +0,0 @@
package net.sf.briar.api.transport;
import java.util.Set;
public interface ConnectionWindow {
boolean isSeen(long connection);
void setSeen(long connection);
Set<Long> getUnseen();
}