How to make a Type 5 UUID in Java?
<p>In python, to make a Type 5 UUID we can simply do:</p>

<pre><code>import uuid
print uuid.uuid5(uuid.NAMESPACE_URL, 'my string')
</code></pre>

<p>Looking through the <a href="https://docs.oracle.com/javase/7/docs/api/java/util/UUID.html" rel="noreferrer">java documentation for java.util.UUID</a>, I don't see how to do it. First off, type 5 isn't mentioned. They do have a Type 3, but the signature is:</p>

<pre><code> nameUUIDFromBytes(byte[] name)
 Static factory to retrieve a type 3 (name based) UUID based on the specified byte array.
</code></pre>

<p><strong>How can we make a Type 5 UUID in Java?</strong></p>