hr.irb.random
Class QrbgSecureRandom

java.lang.Object
  extended by java.util.Random
      extended by java.security.SecureRandom
          extended by hr.irb.random.QrbgSecureRandom
All Implemented Interfaces:
Serializable

public class QrbgSecureRandom
extends SecureRandom

SecureRandomSpi implementation that uses the Quantum Random Bit Generator service from the Ruder Boskovic Institute. Instances of this class do not require RjgodoyProvider to be registered.

Before an instance of this class is constructed (either implicitly by SecureRandom methods, or explicitly by invoking this class constructor), the System properties USERNAME and PASSWORD must be defined.

Author:
Javier Godoy
See Also:
Serialized Form

Field Summary
static String PASSWORD
          Password.
static String USERNAME
          Username.
 
Constructor Summary
QrbgSecureRandom()
          Initializes a new instance of SecureRandom using the QrbgSecureRandomSpi implementation.
 
Method Summary
 
Methods inherited from class java.security.SecureRandom
generateSeed, getAlgorithm, getInstance, getInstance, getInstance, getProvider, getSeed, next, nextBytes, setSeed, setSeed
 
Methods inherited from class java.util.Random
nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USERNAME

public static final String USERNAME
Username.

This property is required in order to login into the service.

Property hr.irb.random.username.
Scopeglobal

See Also:
Constant Field Values

PASSWORD

public static final String PASSWORD
Password.

This property is required in order to login into the service.

Property hr.irb.random.username.
Scopeglobal

See Also:
Constant Field Values
Constructor Detail

QrbgSecureRandom

public QrbgSecureRandom()
                 throws NoSuchAlgorithmException,
                        NoSuchProviderException
Initializes a new instance of SecureRandom using the QrbgSecureRandomSpi implementation.

This constructor is only intended for using QrbgSecureRandom as a stand-alone class. The preferred mechanism is registering the provider RjgodoyProvider and creating an instance by SecureRandom.getInstance("RJGODOY","QRBG").

Throws:
NoSuchAlgorithmException
NoSuchProviderException


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.