Error on create signature object

Good day to all

I'm developing a Provider based on IAIK Wrapper but the main problem that i have had is with the signature service creation.

I register the Signature Class on privider constructor

putService(new Servico(this,"Signature","RSA","my.provider.RSASignature"));

but when a try to instantiate the signature object

Provider p = new MyProvider();

Signature s = Signature.getInstance("RSA",p);

Is raised the folow exception

Exception in thread "main" java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: RSA, provider: MyProvider, class: my.provider.RSASignature)

at java.security.Provider$Service.newInstance(Provider.java:1155)

at sun.security.jca.GetInstance.getInstance(GetInstance.java:220)

at sun.security.jca.GetInstance.getInstance(GetInstance.java:202)

at java.security.Signature.getInstance(Signature.java:373)

at test._TesteProvider.main(_TesteProvider.java:19)

Caused by: java.lang.InstantiationException: my.provider.RSASignature

at java.lang.Class.newInstance0(Class.java:335)

at java.lang.Class.newInstance(Class.java:303)

at java.security.Provider$Service.newInstance(Provider.java:1130)

... 4 more

Thanks in advance

Vasco Creverele

[1317 byte] By [vasco.creverelea] at [2007-11-26 18:40:40]
# 1
Well it's your provider, your constructor threw the exception! You oughta know!All that java.security.Provider$Service.newInstance does is try to construct your implementation class with a java.security.cert.CertStoreParameters parameter.
ejpa at 2007-7-9 6:14:41 > top of Java-index,Security,Other Security APIs, Tools, and Issues...