From baa50aaadb2b6c5de75503ad18ca5ff359fd72d5 Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Mon, 25 Jul 2016 15:40:06 +0930 Subject: [PATCH] Get byte values from abstract id --- java/org/servalproject/servaldna/AbstractId.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/java/org/servalproject/servaldna/AbstractId.java b/java/org/servalproject/servaldna/AbstractId.java index 34cc98fc..e31ae53b 100644 --- a/java/org/servalproject/servaldna/AbstractId.java +++ b/java/org/servalproject/servaldna/AbstractId.java @@ -45,6 +45,11 @@ public abstract class AbstractId { private final byte[] binary; + public byte[] getBinary(){ + //TODO always copy bytes so they can't be tampered with? + return binary; + } + public AbstractId(String hex) throws InvalidHexException { if (hex==null) throw new InvalidHexException(this, "null is not a invalid hex value");