Simple Token information class that contains a username and a lifetime.
The class is not able to detect time manipulations. It is assumed that the
current time of the system is correct.
This class is immutable.
Created by Martin Stockhammer on 03.02.17.
Creates a new token info instance for the given user.
The lifetime in milliseconds defines the invalidation date by
adding the lifetime to the current time of instantiation.
Parameters:
user - The user name
lifetime - The number of milliseconds after that the token is invalid
nonce - Should be a random number and different for each instance.
Creates a new token info instance for the given user.
The lifetime in milliseconds defines the invalidation date by
adding the lifetime to the current time of instantiation.
Parameters:
user - The user name
lifetime - The number of milliseconds after that the token is invalid
nonce - Should be a random number and different for each instance.