X-Git-Url: http://git.argeo.org/?p=lgpl%2Fargeo-commons.git;a=blobdiff_plain;f=org.argeo.api.uuid%2Fsrc%2Forg%2Fargeo%2Fapi%2Fuuid%2FAbstractUuidFactory.java;fp=org.argeo.api.uuid%2Fsrc%2Forg%2Fargeo%2Fapi%2Fuuid%2FAbstractUuidFactory.java;h=4486a9f8b4b907ccb347fa0f78c71b7e3ff30f7a;hp=4f2cf3765dcb69d6d912a7491511bee1350742f5;hb=b95462873703848193e56fcbe997693630db6121;hpb=55d88fba80cec198a0f11ba7545e19878c51fc5e diff --git a/org.argeo.api.uuid/src/org/argeo/api/uuid/AbstractUuidFactory.java b/org.argeo.api.uuid/src/org/argeo/api/uuid/AbstractUuidFactory.java index 4f2cf3765..4486a9f8b 100644 --- a/org.argeo.api.uuid/src/org/argeo/api/uuid/AbstractUuidFactory.java +++ b/org.argeo.api.uuid/src/org/argeo/api/uuid/AbstractUuidFactory.java @@ -110,30 +110,6 @@ public abstract class AbstractUuidFactory implements UuidFactory { return UuidBinaryUtils.fromBytes(arr); } - /* - * SPI UTILITIES - */ - /** Guarantees that a byte array of length 6 will be returned. */ - protected static byte[] toNodeIdBytes(byte[] source, int offset) { - if (source == null) - return null; - if (offset < 0 || offset + 6 > source.length) - throw new ArrayIndexOutOfBoundsException(offset); - byte[] nodeId = new byte[6]; - System.arraycopy(source, offset, nodeId, 0, 6); - return nodeId; - } - - /** - * Force this node id to be identified as no MAC address. - * - * @see "https://datatracker.ietf.org/doc/html/rfc4122#section-4.5" - */ - protected static void forceToNoMacAddress(byte[] nodeId, int offset) { - assert nodeId != null && offset < nodeId.length; - nodeId[offset] = (byte) (nodeId[offset] | 1); - } - /* * DIGEST UTILITIES */