|
JSS 3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mozilla.jss.pkcs11.PK11SecureRandom
A random number generator for PKCS #11.
CryptoManager
Constructor Summary | |
PK11SecureRandom()
While it would be "nice" to add the following code snippet to check initialization of the random number generator prior to using any of the functions, a circular link dependency prevents this: try { CryptoManager.getInstance(); } catch ( CryptoManager.NotInitializedException e ) { Assert.notReached("Pseudorandom number generator " + "has not been initialized!" ); } |
Method Summary | |
void |
nextBytes(byte[] bytes)
|
void |
setSeed(byte[] seed)
|
void |
setSeed(long seed)
|
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public PK11SecureRandom()
Method Detail |
public void setSeed(byte[] seed)
public void setSeed(long seed)
public void nextBytes(byte[] bytes)
|
JSS 3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |