summaryrefslogtreecommitdiff
path: root/src/org/noreply/fancydress/type3/routing/RoutingDestination.java
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-10-27 21:53:02 +0000
committerPeter Palfrader <peter@palfrader.org>2003-10-27 21:53:02 +0000
commitc9e090818272174cf38de4d498d4e1bd6c7f4dd5 (patch)
tree32003661606a0da0eab577c245bccb7b2e3719fa /src/org/noreply/fancydress/type3/routing/RoutingDestination.java
parentbf0ee8eb55de61e98a745d5ea13087c733d4b4b0 (diff)
Further work on SURBs. Decoding and further tests still required.
Diffstat (limited to 'src/org/noreply/fancydress/type3/routing/RoutingDestination.java')
-rw-r--r--src/org/noreply/fancydress/type3/routing/RoutingDestination.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/org/noreply/fancydress/type3/routing/RoutingDestination.java b/src/org/noreply/fancydress/type3/routing/RoutingDestination.java
index 38a0342..500ebc5 100644
--- a/src/org/noreply/fancydress/type3/routing/RoutingDestination.java
+++ b/src/org/noreply/fancydress/type3/routing/RoutingDestination.java
@@ -16,12 +16,29 @@ public abstract class RoutingDestination extends Routing {
public static final int DECODINGHANDLE_LEN = 20;
/**
+ * A decoding handle as is used in SURBS or forward encrypted messages.
+ */
+ protected byte[] decodingHandle;
+
+ /**
* Default constructor.
*
* @param type The routing type as integer.
*/
protected RoutingDestination(int type) {
super (type);
+ decodingHandle = null;
+ }
+
+ /**
+ * Set a decoding handle as is used in SURBS or forward encrypted messages.
+ *
+ * @param decodingHandle decoding handle
+ */
+ public void setDecodingHandle(byte[] decodingHandle) {
+ if (decodingHandle.length != DECODINGHANDLE_LEN)
+ throw new Error("Decoding handle is not DECODINGHANDLE_LEN bytes long.");
+ this.decodingHandle = decodingHandle;
}
}