Package org.mozilla.jss.pkcs11
Class PK11SecureRandom
- java.lang.Object
-
- 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
Constructors Constructor Description PK11SecureRandom()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnextBytes(byte[] bytes)Retrieves random bytes and stores them in the given array.voidsetSeed(byte[] seed)Seed the RNG with the given seed bytes.voidsetSeed(long seed)Seed the RNG with the eight bytes contained inseed.
-
-
-
Method Detail
-
setSeed
public void setSeed(byte[] seed)
Description copied from interface:JSSSecureRandomSeed the RNG with the given seed bytes.- Specified by:
setSeedin interfaceJSSSecureRandom- Parameters:
seed- Seed.
-
setSeed
public void setSeed(long seed)
Description copied from interface:JSSSecureRandomSeed the RNG with the eight bytes contained inseed.- Specified by:
setSeedin interfaceJSSSecureRandom- Parameters:
seed- Seed.
-
nextBytes
public void nextBytes(byte[] bytes)
Description copied from interface:JSSSecureRandomRetrieves random bytes and stores them in the given array.- Specified by:
nextBytesin interfaceJSSSecureRandom- Parameters:
bytes- Array to store random bytes.
-
-