mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-23 15:02:27 +00:00
Get byte values from abstract id
This commit is contained in:
parent
51947dc6cb
commit
baa50aaadb
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user