2

i need help with signing a java applet properly. the reason why iam saying 'properly' is that i have already tried generating a key using keytool and then signing the .jar file with it but it just doesnt work.iam using java 1.7. Any help will be greatly appreciated ...

4

2 回答 2

3

你的意思是,你想要某种用于签署 JAR 文件的教程?

http://docs.oracle.com/javase/tutorial/deployment/jar/signindex.html

于 2012-09-04T14:09:47.290 回答
0
AccessController.doPrivileged(new PrivilegedAction() 
     { 
         public Object run() 
         { // It will work if your applet is signed 
            readfile(); 
            return null; 
         } 
     }
);

......... 这个小程序代码解决了我的问题。现在在特权代码部分下运行我的代码可以获得我需要的所有安全许可!

于 2012-09-06T10:34:59.723 回答