JCE provider (JCE cannot authenticate the provider)

Good Day for all

I'm trying to develop a JCE Provider but I've had a problem while getting a Cipher instance. I can instantiate a signature object but when I try getting a Cipher instance I receive the following exception

Exception in thread "main" java.lang.SecurityException: JCE cannot authenticate the provider ProviderTeste

at javax.crypto.Cipher.getInstance(DashoA12275)

at javax.crypto.Cipher.getInstance(DashoA12275)

at providerteste.Teste.main(Teste.java:22)

Caused by: java.lang.SecurityException: Cannot verify jar:file:/C:/Desenvolvimento/workspace/ProviderTeste/bin/!/

at javax.crypto.SunJCE_d.b(DashoA12275)

at javax.crypto.SunJCE_d.a(DashoA12275)

at javax.crypto.SunJCE_d.a(DashoA12275)

at javax.crypto.SunJCE_b.b(DashoA12275)

at javax.crypto.SunJCE_b.a(DashoA12275)

... 3 more

Caused by: java.security.PrivilegedActionException: java.util.zip.ZipException: Acesso negado

at java.security.AccessController.doPrivileged(Native Method)

... 8 more

Caused by: java.util.zip.ZipException: Acesso negado

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:203)

at java.util.jar.JarFile.<init>(JarFile.java:132)

at java.util.jar.JarFile.<init>(JarFile.java:70)

at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:56)

at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:41)

at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:63)

at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:102)

at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)

at javax.crypto.SunJCE_e.run(DashoA12275)

... 9 more

Thanks in advance

[1847 byte] By [Le_Enfant_Roia] at [2007-11-27 0:44:44]
# 1
For a JCE provider to be recognized it must be signed and must be verified using a certificate signed by Sun. In common with many others I find this a silly restriction because one can use encryption outside of the JCE without any problems.
sabre150a at 2007-7-11 23:09:17 > top of Java-index,Security,Cryptography...