> On Nov 20, 2015, at 1:11 AM, Sean Mullan <sean.mul...@oracle.com> wrote:
>> 
>> However, I cannot get it working, and I found difficulties understanding the 
>> EngineDescription inner class inside Provider.java.
>> 
>> 1. For each engine that can take an extra parameter (not provider) in 
>> getInstance(), it is always named XyzParameters, not an 
>> AlgorithmParameterSpec.

Shall we also use SecureRandomParameters?

> 
>> 2. For each of these, if you have getInstance(alg, params), there is no 
>> getInstance(alg). Obviously, for SecureRandom we need to have both.
> 
> Right, this is the first case where we have both variants of getInstance.
> 
> Just looking through the code, it looks like you can change 
> Provider.Service.newInstance() to call the appropriate constructor depending 
> on whether the constructorParameter is null or not. Can you try that?

Good. I'll try.

Thanks
Max

Reply via email to