nl.knowledgeplaza.util
Class RandomGUID

java.lang.Object
  extended by nl.knowledgeplaza.util.RandomGUID

public class RandomGUID
extends Object


Field Summary
 String valueAfterMD5
           
 String valueBeforeMD5
           
 
Constructor Summary
RandomGUID()
          Default constructor.
RandomGUID(boolean secure)
          Constructor with security option.
 
Method Summary
static String create()
          Just to make life easy, not quick
static void main(String[] args)
          Demonstration and self test of class
 String toString()
          Convert to the standard format for GUID (Useful for SQL Server UniqueIdentifiers, etc.) Example: C2FEEEAC-CFCD-11D1-8B05-00600806D9B6
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

valueBeforeMD5

public String valueBeforeMD5

valueAfterMD5

public String valueAfterMD5
Constructor Detail

RandomGUID

public RandomGUID()
Default constructor. With no specification of security option, this constructor defaults to lower security, high performance.


RandomGUID

public RandomGUID(boolean secure)
Constructor with security option. Setting secure true enables each random number generated to be cryptographically strong. Secure false defaults to the standard Random function seeded with a single cryptographically strong random number.

Method Detail

toString

public String toString()
Convert to the standard format for GUID (Useful for SQL Server UniqueIdentifiers, etc.) Example: C2FEEEAC-CFCD-11D1-8B05-00600806D9B6

Overrides:
toString in class Object

create

public static String create()
Just to make life easy, not quick

Returns:

main

public static void main(String[] args)
Demonstration and self test of class



Copyright © 2012 KnowledgePlaza. All Rights Reserved.