nl.knowledgeplaza.util
Class RandomGUID

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

public class RandomGUID
extends java.lang.Object


Field Summary
 java.lang.String valueAfterMD5
           
 java.lang.String valueBeforeMD5
           
 
Constructor Summary
RandomGUID()
          Default constructor.
RandomGUID(boolean secure)
          Constructor with security option.
 
Method Summary
static java.lang.String create()
          Just to make life easy, not quick
static void main(java.lang.String[] args)
          Demonstration and self test of class
 java.lang.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 java.lang.String valueBeforeMD5

valueAfterMD5

public java.lang.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 java.lang.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 java.lang.Object

create

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

Returns:

main

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



Copyright © 2010 KnowledgePlaza. All Rights Reserved.