mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
and TransportIndex (locally unique). This is the first step towards forward secrecy. Also removed the Writable interface and unnecessary user-defined types, moved various constants to ProtocolConstants and renamed some classes.
30 lines
520 B
Java
30 lines
520 B
Java
package net.sf.briar.db;
|
|
|
|
import net.sf.briar.api.protocol.Group;
|
|
import net.sf.briar.api.protocol.GroupId;
|
|
|
|
public class TestGroup implements Group {
|
|
|
|
private final GroupId id;
|
|
private final String name;
|
|
private final byte[] publicKey;
|
|
|
|
public TestGroup(GroupId id, String name, byte[] publicKey) {
|
|
this.id = id;
|
|
this.name = name;
|
|
this.publicKey = publicKey;
|
|
}
|
|
|
|
public GroupId getId() {
|
|
return id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public byte[] getPublicKey() {
|
|
return publicKey;
|
|
}
|
|
}
|