You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.




org.mozilla.jss.pkcs11
Class PK11SecureRandom

java.lang.Object
  extended by org.mozilla.jss.pkcs11.PK11SecureRandom
All Implemented Interfaces:
JSSSecureRandom

public final class PK11SecureRandom
extends java.lang.Object
implements JSSSecureRandom

A random number generator for PKCS #11.

See Also:
CryptoManager

Constructor Summary
PK11SecureRandom()
           
 
Method Summary
 void nextBytes(byte[] bytes)
          Retrieves random bytes and stores them in the given array.
 void setSeed(byte[] seed)
          Seed the RNG with the given seed bytes.
 void setSeed(long seed)
          Seed the RNG with the eight bytes contained in seed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PK11SecureRandom

public PK11SecureRandom()
Method Detail

setSeed

public void setSeed(byte[] seed)
Description copied from interface: JSSSecureRandom
Seed the RNG with the given seed bytes.

Specified by:
setSeed in interface JSSSecureRandom

setSeed

public void setSeed(long seed)
Description copied from interface: JSSSecureRandom
Seed the RNG with the eight bytes contained in seed.

Specified by:
setSeed in interface JSSSecureRandom

nextBytes

public void nextBytes(byte[] bytes)
Description copied from interface: JSSSecureRandom
Retrieves random bytes and stores them in the given array.

Specified by:
nextBytes in interface JSSSecureRandom