English 中文(简体)
缺省反应了什么以及如何改变这些反应?
原标题:What are the default ReflectPermissions and how to change them?

我试图理解在何种条件下允许使用方法。 就我理解文件的不同范围而言,打电话给Papessible(Accessible)会引发安全管理小组的检查,看看是否允许变换准入。

Given that, I tried to find out what the default setting for this permission is, and where I can change it. In the central java.policy file, no mention of these permissions is made, and I couldn t find any other policy file that takes effect, and I also couldn t find any additional documentation about defaults that the SecurityManager might apply.

我试图说明这一点的主要原因是,我用反省来绕过追随者。 我也想知道,我必须告诉客户如何为他们做这项工作。

Any hints where to look or insights in how this works?

最佳回答

它涉及安全管理。

违约后,没有安装安全管理套(这就是为什么所有许可检查都检查员工和管理当局的有无)。 这是你的不实——一切都是罚款。

一些发射器(如厕所环境)将安装一个安全管理套,而安全管理则在违约时使用政策档案。 你们可以在“java.security”档案中改变这一点。 其他一些环境(如一个服务器箱或Java E集装箱)也可能安装安全管理套。

After this, java security is in place. By default, your code can no longer call "setAccessible".

为了做到这一点,你必须修改政策文件(如果默认政策积极,如果不是——而且——并且读到你正在运行的环境文件)。 无障碍环境是一种“huge<>/em>的改变——如果你的要求和经营环境的要求仍然一致,则进行双重检查。 例如,改变平原位置将严重损害安全。

grant  {
    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
};

准许。

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签