org.apache.juddi.uuidgen
Class SecureUUIDGen

java.lang.Object
  extended by org.apache.juddi.uuidgen.SecureUUIDGen
All Implemented Interfaces:
UUIDGen

public class SecureUUIDGen
extends java.lang.Object
implements UUIDGen

Used to create new universally unique identifiers or UUID's (sometimes called GUID's). UDDI UUID's are allways formmated according to DCE UUID conventions.

Author:
Maarten Coene, Steve Viens (sviens@apache.org)

Constructor Summary
SecureUUIDGen()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  java.lang.String nextUUID()
          Creates a new UUID.
 java.lang.String uuidgen()
          Generates a UUID and returns it's value as a String
 java.lang.String[] uuidgen(int nmbr)
          Generates a collection of UUID's and returns thier values as an array of Strings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureUUIDGen

public SecureUUIDGen()
Method Detail

uuidgen

public java.lang.String uuidgen()
Description copied from interface: UUIDGen
Generates a UUID and returns it's value as a String

Specified by:
uuidgen in interface UUIDGen
Returns:
The new UUID value as a String

uuidgen

public java.lang.String[] uuidgen(int nmbr)
Description copied from interface: UUIDGen
Generates a collection of UUID's and returns thier values as an array of Strings

Specified by:
uuidgen in interface UUIDGen
Parameters:
nmbr - The number of UUID's to generate
Returns:
An array of UUID's as String objects

nextUUID

protected java.lang.String nextUUID()
Creates a new UUID. The algorithm used is described by The Open Group. See Universal Unique Identifier for more details.

Due to a lack of functionality in Java, a part of the UUID is a secure random. This results in a long processing time when this method is called for the first time.


main

public static void main(java.lang.String[] args)


Copyright © 2004-2007. All Rights Reserved.