com.plumtree.openfoundation.util
Class XPSecureRandom

java.lang.Object
  extended bycom.plumtree.openfoundation.util.XPSecureRandom

public class XPSecureRandom
extends java.lang.Object

Wraps and stores a securerandom variable.


Constructor Summary
XPSecureRandom()
          Creates a new random object.
 
Method Summary
 void GetBytes(byte[] randomdata)
          Generates a user-specified number of random bytes.
 java.lang.String NextHex()
          Returns the next hex secured random string.
 int NextInt()
          Returns the next securerandom integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPSecureRandom

public XPSecureRandom()
Creates a new random object.

Method Detail

GetBytes

public void GetBytes(byte[] randomdata)
Generates a user-specified number of random bytes. This method is used as the basis of all random entities returned by this class (except seed bytes).

Parameters:
randomdata - the array to be filled in with random bytes.

NextInt

public int NextInt()
Returns the next securerandom integer.

Returns:
random integer

NextHex

public java.lang.String NextHex()
Returns the next hex secured random string.

Returns:
next hex string.


Copyright 2002, 2003, 2004 Plumtree Software Inc. All Rights Reserved.