FreedomNetworkSuite/Commons/src/main/java/me/totalfreedom/utils/Identity.java
Paul Reilly 09bede768b Init
2023-04-13 20:24:40 -05:00

27 lines
383 B
Java

package me.totalfreedom.utils;
import java.util.UUID;
public class Identity
{
private final String key;
private final UUID id;
public Identity(String key)
{
this.key = key;
this.id = UUID.nameUUIDFromBytes(key.getBytes());
}
public String getKey()
{
return key;
}
public UUID getId()
{
return id;
}
}