我能够在当地使用castle堡jar沟进行加密和加密。 我产生了一些关键因素,我想把公用钥匙放在客户(Java和Anderson)和网络服务的私人钥匙上。 我得以对电文进行加密和编码,并向网络服务处发送加密信息(在月球网页的主机服务上),但网络服务加密没有在线上安装一个文件。
BouncyCastleProvider bc = new BouncyCastleProvider();
或
Security.addProvider(new BouncyCastleProvider());
bcprov-ext-jdk14-146.jar和bcprov-jdk14-146.jar被列入网上校准目录。
Is there something I can do programmatic to enable this 或does Lunarpages have to do something?
I couldnt even get a stacktrace to print f或me and so I thought I might attempt a different provider to see if I get a better response - the SunJCE.
access denied (java.security.SecurityPermission insertProvider.SunJCE)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:269) java.security.AccessController.checkPermission(AccessController.java:401) java.lang.SecurityManager.checkPermission(SecurityManager.java:524) java.lang.SecurityManager.checkSecurityAccess(SecurityManager.java:1673) java.security.Security.check(Security.java:1307) java.security.Security.insertProviderAt(Security.java:697) java.security.Security.addProvider(Security.java:757) net.wpstudios.tcws.pgp.RSAEncrypt.generateKeys(RSAEncrypt.java:81) javax.servlet.http.HttpServlet.service(HttpServlet.java:165) javax.servlet.http.HttpServlet.service(HttpServlet.java:103) com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96) com.caucho.server.http.Invocation.service(Invocation.java:315) com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135) com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:346) com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274) com.caucho.server.TcpConnection.run(TcpConnection.java:139) java.lang.Thread.run(Thread.java:534)