Пример #1
0
  public String generateReadonlyToken(String token) {
    int count = iterationBusiness.getIterationCountFromReadonlyToken(token);
    while (count > 0) {
      SecureRandom r = new SecureRandom();
      token = new BigInteger(130, r).toString();
      count = iterationBusiness.getIterationCountFromReadonlyToken(token);
    }

    return token;
  }