UserTokenHelper
Package: velox.api.layer1.utils
Type: Class
Inheritance: java.lang.Object รขโ โ velox.api.layer1.utils.UserTokenHelper
Constructorsโ
UserTokenHelperโ
public UserTokenHelper()
Methodsโ
setTokenSupplierโ
public static void setTokenSupplier(Supplier<String> tokenSupplier)
Internal method used to set the handler
Parameters:
tokenSupplier- Token supplier
generateTokenโ
public static String 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).
Returns: Generated token string