Java UUID Create generateUUID()

Here you can find the source of generateUUID()

Description

Generates a random UUID used as a RequestID for SAML request.

License

Open Source License

Declaration

public static String generateUUID() 

Method Source Code

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

import java.util.UUID;

public class Main {
    /**//from  ww  w. j a  v a  2  s  .com
     * Generates a random UUID used as a RequestID for SAML request.
     * 
     * @return
     */
    public static String generateUUID() {
        UUID uuid = UUID.randomUUID();
        String strUUID = "a" + uuid.toString(); // XML validation requires that the request ID does not start with a
                                                // number
        return strUUID;
    }
}

Related

  1. generateUri()
  2. generateURN()
  3. generateUUID()
  4. generateUUID()
  5. generateUUID()
  6. generateUUID()
  7. generateUUID()
  8. generateUuid()
  9. generateUUID()