summaryrefslogtreecommitdiff
path: root/src/org/noreply/fancydress/type3/routing/RoutingForward.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/noreply/fancydress/type3/routing/RoutingForward.java')
-rw-r--r--src/org/noreply/fancydress/type3/routing/RoutingForward.java17
1 files changed, 16 insertions, 1 deletions
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
@@ -9,12 +9,18 @@ package org.noreply.fancydress.type3.routing;
*/
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;
+ }
}