hr.irb.random
Class QrbgSecureRandomSpi

java.lang.Object
  extended by java.security.SecureRandomSpi
      extended by hr.irb.random.QrbgSecureRandomSpi
All Implemented Interfaces:
Serializable

public class QrbgSecureRandomSpi
extends SecureRandomSpi

SecureRandomSpi implementation that uses the Quantum Random Bit Generator service from the Ruder Boskovic Institute. Before the first instance of this class is constructed, USERNAME and PASSWORD must be defined Other properties are related to the TRNG behaviour, then they are instance-specific and may be specified before constructing each instance. See QrbgSecureRandom.

Author:
Javier Godoy
See Also:
Serialized Form

Constructor Summary
QrbgSecureRandomSpi()
           
 
Method Summary
protected  byte[] engineGenerateSeed(int numBytes)
           
protected  void engineNextBytes(byte[] bytes)
           
protected  void engineSetSeed(byte[] seed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QrbgSecureRandomSpi

public QrbgSecureRandomSpi()
Method Detail

engineGenerateSeed

protected byte[] engineGenerateSeed(int numBytes)
Specified by:
engineGenerateSeed in class SecureRandomSpi

engineSetSeed

protected void engineSetSeed(byte[] seed)
Specified by:
engineSetSeed in class SecureRandomSpi

engineNextBytes

protected void engineNextBytes(byte[] bytes)
Specified by:
engineNextBytes in class SecureRandomSpi


Submit a bug or request a featureCopyright © (2008-2011) Roberto Javier Godoy
Project Web Hosted by SourceForge.netSouceForge.net is registered trademark of SourceForge, Inc., in the United States and other countries.