Here you can find the source of generatorToken()
public static String generatorToken()
//package com.java2s; import java.util.UUID; public class Main { public static String generatorToken() { UUID uuid = UUID.randomUUID(); String token = uuid.toString(); token = token.toUpperCase();/*from w ww . j av a 2s .co m*/ token = token.replaceAll("-", ""); return token; } }