Expresso 5-6

com.jcorporate.expresso.core.security.weakencryption
Class RandomNumber

java.lang.Object
  extended bycom.jcorporate.expresso.core.security.AbstractRandomNumber
      extended bycom.jcorporate.expresso.core.security.weakencryption.RandomNumber

public final class RandomNumber
extends AbstractRandomNumber

Weak version of the Randum Number Generator. This version only uses the standard PRNG and nothing even close to cryptographic strength.

Author:
Michael Rimov

Constructor Summary
RandomNumber()
          Default Constructor
 
Method Summary
 byte[] getRandomBytes(int numBytes)
          getRandomBytes - Returns a byte array of random bytes.
 
Methods inherited from class com.jcorporate.expresso.core.security.AbstractRandomNumber
getCryptoManager, init, setCryptoManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomNumber

public RandomNumber()
             throws ChainedException
Default Constructor

Throws:
ChainedException - if unable to instantiate the SHA1 Random number generator
Method Detail

getRandomBytes

public byte[] getRandomBytes(int numBytes)
getRandomBytes - Returns a byte array of random bytes. The derived class determines the actual method used for getting the random data.

Specified by:
getRandomBytes in class AbstractRandomNumber
Parameters:
numBytes - The number of bytes to retrieve
Returns:
An array of random bytes

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.