mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
Changes to implementation for SecertOwnerTask
This commit is contained in:
@@ -22,11 +22,14 @@ public interface SecretOwnerTask {
|
||||
|
||||
private final PublicKey publicKey;
|
||||
private final InetSocketAddress socketAddress;
|
||||
private final byte[] localPayload;
|
||||
|
||||
public Listening(PublicKey publicKey,
|
||||
InetSocketAddress socketAddress) {
|
||||
this.publicKey = publicKey;
|
||||
this.socketAddress = socketAddress;
|
||||
// TODO this should also include the socket address
|
||||
this.localPayload = publicKey.getEncoded();
|
||||
}
|
||||
|
||||
public PublicKey getPublicKey() {
|
||||
@@ -36,6 +39,10 @@ public interface SecretOwnerTask {
|
||||
public InetSocketAddress getSocketAddress() {
|
||||
return socketAddress;
|
||||
}
|
||||
|
||||
public byte[] getLocalPayload() {
|
||||
return localPayload;
|
||||
}
|
||||
}
|
||||
|
||||
public static class ReceivingShard extends State {
|
||||
|
||||
Reference in New Issue
Block a user