security-policy

NetFx40_LegacySecurityPolicy in design-time mode

孤者浪人 提交于 2019-12-18 14:24:10
问题 Is there any way to make legacy design-time code execute with NetFx40_LegacySecurityPolicy switched on? More specificaly, is there any way to make DevExpress 8.2 winforms designer work in VisualStudio 2010? I got errors due to this issue and found no help about design-time mode, just about run-time: <runtime> <NetFx40_LegacySecurityPolicy enabled="true"/> </runtime> How should I fix problems with winforms designer? 回答1: Just add this <NetFx40_LegacySecurityPolicy enabled="true"/> into your

NetFx40_LegacySecurityPolicy in design-time mode

北战南征 提交于 2019-12-18 14:24:08
问题 Is there any way to make legacy design-time code execute with NetFx40_LegacySecurityPolicy switched on? More specificaly, is there any way to make DevExpress 8.2 winforms designer work in VisualStudio 2010? I got errors due to this issue and found no help about design-time mode, just about run-time: <runtime> <NetFx40_LegacySecurityPolicy enabled="true"/> </runtime> How should I fix problems with winforms designer? 回答1: Just add this <NetFx40_LegacySecurityPolicy enabled="true"/> into your

Why would Glassfish generate an incomplete granted.policy file?

你离开我真会死。 提交于 2019-12-13 04:38:48
问题 Version: GlassFish Server 3.1.2.2 (build 5) I have an EAR project which contains a WAR and a single EAR . In the META-INF folder of the EAR, I have a sun-application.xml file which maps a selection of roles to groups. In the default file realm for Glassfish , I have configured users which map to these groups. I am not using Default Role to Mapping and I have not actived the Security Manager. Access works perfectly. This is further proven by removing the deployment descriptor, which causes an

What are the correct security policy value settings to allow both RMI and JPA/Hibernate to work at the same time

与世无争的帅哥 提交于 2019-12-12 01:22:49
问题 I'm working on an application that requires the use of both JPA/Hibernate and RMI. Since RMI requires the use of a Security Policy to make sure that access to the network is correctly assigned I also now have to worry about the folder permissions. I've been looking online (and here at SO) for a couple of days now trying to find a solution to this problem. Basically the problem is that for JPA/Hibernate to work I have to place the persistence.xml file in the META-INF directory, and the META

Block some permissions and grant other permissions in java security policy

会有一股神秘感。 提交于 2019-12-11 16:48:45
问题 I want to implement a security policy file in the following way :- Restrict access to all files except for files in 3 directories, i.e. if code accesses files from these 3 directories, it should be allowed but file access for any other directory is restricted. Grant all other permissions to the code base. How can I proceed for creating policy file for this requirement. 回答1: You need to create next policy file (yourPolicy.policy): grant codeBase "file:/location_of_your_code/-" { permission

What is a simple Java security policy for restricting file writes to a single directory?

て烟熏妆下的殇ゞ 提交于 2019-12-11 08:14:05
问题 The students in my beginning Java class are beginning to learn about file I/O, and one of their projects involves deleting and renaming files. I can think of dozens of ways this can go wrong. Therefore, it would be useful to use Java's security framework to restrict their programs from renaming, deleting, or writing over files that are not contained in a specific directory. Reading outside the directory is fine, and the policy doesn't need to be super-bulletproof -- this is more about

RMI cannot connect to remote server

夙愿已清 提交于 2019-12-01 11:14:58
问题 I've been plying with RMI recently and while I managed to make it work on locahost I've been having all sorts of problem when trying to use a remote server. Here's the basic code I'm trying to run: Server: public class RmiServer extends UnicastRemoteObject implements RmiServerIntf { public static final String MESSAGE = "Hello world"; public RmiServer() throws RemoteException { } public String getMessage() { return MESSAGE; } public static void main(String args[]) { System.out.println("RMI

NetFx40_LegacySecurityPolicy in design-time mode

自作多情 提交于 2019-11-30 11:01:15
Is there any way to make legacy design-time code execute with NetFx40_LegacySecurityPolicy switched on? More specificaly, is there any way to make DevExpress 8.2 winforms designer work in VisualStudio 2010? I got errors due to this issue and found no help about design-time mode, just about run-time: <runtime> <NetFx40_LegacySecurityPolicy enabled="true"/> </runtime> How should I fix problems with winforms designer? Thomas Just add this <NetFx40_LegacySecurityPolicy enabled="true"/> into your VS2010 DevEnv configuration file , you'll find it in C:\Program Files (x86)\Microsoft Visual Studio 10