mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
Added TestDatabaseModule so tests can specify their own DB configuration. The modules are currently too tightly coupled - see whether any dependencies can be removed.
18 lines
502 B
Java
18 lines
502 B
Java
package net.sf.briar.transport;
|
|
|
|
import java.io.IOException;
|
|
import java.io.OutputStream;
|
|
|
|
/** Encrypts authenticated data to be sent over a connection. */
|
|
interface ConnectionEncrypter {
|
|
|
|
/** Returns an output stream to which unencrypted data can be written. */
|
|
OutputStream getOutputStream();
|
|
|
|
/** Encrypts and writes the MAC for the current frame. */
|
|
void writeMac(byte[] mac) throws IOException;
|
|
|
|
/** Returns the maximum number of bytes that can be written. */
|
|
long getRemainingCapacity();
|
|
}
|