mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2024-11-14 21:23:33 +00:00
27 lines
383 B
Java
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;
|
|
}
|
|
}
|