public class RandomDataProxy extends Object
RandomDataRandomData| Constructor and Description |
|---|
RandomDataProxy() |
| Modifier and Type | Method and Description |
|---|---|
static javacard.security.RandomData |
getInstance(byte algorithm)
Creates a
RandomData instance of the selected algorithm. |
public static final javacard.security.RandomData getInstance(byte algorithm)
throws javacard.security.CryptoException
RandomData instance of the selected algorithm.
The pseudo random RandomData instance's seed is initialized to a internal default value.algorithm - the desired random number algorithm. Valid codes listed in ALG_ .. constants above. See ALG_PSEUDO_RANDOM.RandomData object instance of the requested algorithmjavacard.security.CryptoException - with the following reason codes:CryptoException.NO_SUCH_ALGORITHM if the requested algorithm is not supported.