Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I customize the restrictions of which Java classes Flash Remoting can call in JRun 4?

0
Posted

How do I customize the restrictions of which Java classes Flash Remoting can call in JRun 4?

0

As such, if you wish to allow clients to connect to your own Java classes, you can modify a policy file to expand the permissions granted. For example, to allow the gateway to access classes in the com.macromedia package, add the following line to the lib/jrun.policy file. This will open access to the package to all users, which is not necessarily a bad thing in the com.macromedia case (since it’s not a common package in our servers). // PERMISSIONS GRANTED TO EVERYONE grant { // users should narrow or expand on this as they see fit // to grant wide-open security access to all code, uncomment this line //permission java.security.AllPermission; // to grant clients access to classes in the jrun packages, uncomment this line //permission java.lang.RuntimePermission “accessClassInPackage.jrun”; // add this line permission java.lang.RuntimePermission “accessClassInPackage.com.macromedia”; //snipped } Currently, Java only allows package-level declarations.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123