Hello All,
I am working on Wildfly 17 by generating the Ear and I am setting the permissions in the META-INF/permissions.xml .
Here I define it as
<permission>
<class-name>java.io.FilePermission</class-name>
<name>C:\users\upload.properties</name>
<actions>read,write</actions>
</permission>
For the same file, I define the java.util.
PropertyPermission as follows as a new entry.
<permission>
<class-name>>java.util.PropertyPermission</class-name>
<name>C:\users\upload.properties</name>
<actions>read,write</actions>
</permission>
Is there any way I can define the multiple permissions for the file instead of defining it individually?
For eg: like below. I used to define in WebLogic
grant codeBase "file:C:/users/upload.properties"
{
permission java.util.PropertyPermission "*", "read,write";
permission java.io.FilePermission "*", "read,write";
};
I have to define around 70 + permissions for each of the files.
Thanks in advance.