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");