FreedomNetworkSuite/Commons/src/main/java/me/totalfreedom/utils/Identity.java

27 lines
383 B
Java
Raw Normal View History

2023-04-14 01:24:40 +00:00
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;
}
}