protected CryptoRandom getRandom(String className) throws Exception {
Properties props = new Properties();
props.setProperty(CryptoRandomFactory.CLASSES_KEY, className);
final CryptoRandom cryptoRandom = CryptoRandomFactory.getCryptoRandom(props);
Assert.assertEquals(className, cryptoRandom.getClass().getCanonicalName());
return cryptoRandom;
}
|