Generate unique token with creation time inside
<p>Only using java 8, with no other libraries, I need to generate a unique token which expires in 5 minutes, but instead of saving the creation time on DB, I would like to store the creation time inside the token to decode it later when it used.</p>

<p>How could I do it?</p>