Class UserTokenHelper

java.lang.Object
velox.api.layer1.utils.UserTokenHelper

public class UserTokenHelper extends Object
  • Constructor Details

    • UserTokenHelper

      public UserTokenHelper()
  • Method Details

    • setTokenSupplier

      public static void setTokenSupplier(Supplier<String> tokenSupplier)
      Internal method used to set the handler
    • 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).