From eae058561c5ff1e818a1778782858753b214f3a1 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 15 Oct 2003 15:21:43 +0000 Subject: move keyid into RoutingForward --- .../fancydress/type3/routing/RoutingForward.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/org/noreply/fancydress/type3/routing/RoutingForward.java') diff --git a/src/org/noreply/fancydress/type3/routing/RoutingForward.java b/src/org/noreply/fancydress/type3/routing/RoutingForward.java index 28ac75d..183696a 100644 --- a/src/org/noreply/fancydress/type3/routing/RoutingForward.java +++ b/src/org/noreply/fancydress/type3/routing/RoutingForward.java @@ -8,13 +8,19 @@ package org.noreply.fancydress.type3.routing; * (possible after a SWAP operation) to a next node. */ public abstract class RoutingForward extends Routing { + /** + * Keyid of the next hop's Identity Key + */ + protected byte[] keyid; + /** * Default constructor. * * @param type The routing type as integer. */ - protected RoutingForward(int type) { + protected RoutingForward(int type, byte[] keyid) { super (type); + this.keyid = keyid; } /** @@ -23,5 +29,14 @@ public abstract class RoutingForward extends Routing { * @return A routing class with the same information, but with a SWAP routing type. */ public abstract RoutingForward asSwap(); + + /** + * Return the Identity Key of the next node + * + * @returns next node's identity key. + */ + public byte[] getKeyID() { + return keyid; + } } -- cgit v1.2.3