Java UUID Create generateUniqueID()

Here you can find the source of generateUniqueID()

Description

Generates a unique string (used for example as ID of assertions)

License

Open Source License

Return

A unique string

Declaration

public static String generateUniqueID() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.UUID;

public class Main {
    public static final String UNIQUE_ID_PREFIX = "ONELOGIN_";

    /**/* w w w .  j a  va2s  .  c  o m*/
     * Generates a unique string (used for example as ID of assertions)
     *
     * @return A unique string
     */
    public static String generateUniqueID() {
        return UNIQUE_ID_PREFIX + UUID.randomUUID();
    }
}

Related

  1. generateShortUuid()
  2. generateSoapMessageId(String messageIdPrefix)
  3. generateToken()
  4. GenerateUniqueID()
  5. generateUniqueID()
  6. generateUniqueId()
  7. generateUniqueString()
  8. generateUniqueText()
  9. generateUri()