Here you can find the source of generateToken()
public static final String generateToken()
//package com.java2s; //License from project: Open Source License public class Main { public static final String generateToken() { return java.util.UUID.randomUUID().toString(); }//from ww w. ja v a2 s . co m }