Package velox.api.layer1.utils
Class UserTokenHelper
java.lang.Object
velox.api.layer1.utils.UserTokenHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGenerate a unique token based on user license and time.static voidsetTokenSupplier(Supplier<String> tokenSupplier) Internal method used to set the handler
-
Constructor Details
-
UserTokenHelper
public UserTokenHelper()
-
-
Method Details
-
setTokenSupplier
Internal method used to set the handler -
generateToken
Generate a unique token based on user license and time. It should not be possible to derive neither of those from the token outside of Bookmap servers. Tokens are expected to look random and comparing two tokens is not expected to be possible (i.e. you can't tell if tokens were generated by same user or not without the help of Bookmap servers).
-