Questions tagged [policyfiles]

43 questions
174
votes
11 answers

How to avoid installing "Unlimited Strength" JCE policy files when deploying an application?

I have an app that uses 256-bit AES encryption which is not supported by Java out of the box. I know to get this to function correctly I install the JCE unlimited strength jars in the security folder. This is fine for me being the developer, I can…
Ken
12
votes
4 answers

Programmatically grant Permissions without using policy file

How to programmatically grant AllPermissions to an RMI application without using policy file? UPDATE: After some researching, I have written this custom Policy Class and installed it via Policy.setPolicy(new MyPolicy()). Now I get the following…
Adel Boutros
  • 10,205
  • 7
  • 55
  • 89
5
votes
4 answers

Java Policy file - Deny permissions to a codebase

In the Java policy file, the grant codeBase syntax specifies which codebase should be granted which permissions. for example, grant codeBase "file:/C:/abc.jar" { permission java.security.AllPermission; }; grants AllPermission to code inside…
4
votes
1 answer

.NET Assembly Binding How/Why (1.1, 2.0, GAC, Policy Files and more...)

I have been working through a number of very "odd" issues with some DLL versions, Policy Files, and items in the GAC and for the life of me I haven't been able to find a solid answer as to how/why the .NET framework picks the assemblies that it…
Mitchel Sellers
  • 62,228
  • 14
  • 110
  • 173
4
votes
1 answer

grant permissions to multiple codebases

Is it possible to grant same permissions to unrelated codebases (e.g. I can not use wildcards)? For example I have following permission configuration: grant codebase "file:/somepath1/code.jar" { permission my.class.Permission1; permission…
michael nesterenko
  • 14,222
  • 25
  • 114
  • 182
3
votes
2 answers

.java.policy file and local applet

I am working on an HTML page that is using Javascript to interact with a Java applet. The HTML page, javascript files, and .jar file for the applet will be deployed locally to a folder on the user's filesystem. (Implmenting this as a standalone…
rugcutter
  • 101
  • 1
  • 2
  • 8
3
votes
1 answer

Java JCE Unlimited strength encryption security policy files

Are the JCE policy files (in {java.home}/lib/security) overwritten with the standard strength policy files after a JRE update? or are these left alone on JRE update? EDIT: Does anyone know if the Mac OS X JRE ships with the unlimited policy…
Jon
  • 365
  • 2
  • 13
3
votes
2 answers

Using encryption that would need Java Policy Files in openjre

if i want to use java and encryption with keys longer than 128bit i have to use the Java Policy Files. How to get those applications up and running with openjre? I get the same error i get using oracle jre without policy files, but i can't simply…
uti.devel
  • 356
  • 6
  • 17
2
votes
1 answer

AES-256 encryption in Java without changing policy files

I am trying to encrypt some data with AES in java. Till now I have successfully encrypted the data with a 128 bit key. For 256 bit encryption I need to change my policy files which is not an option for me. I referred this SO Q/A too. Tried…
YetAnotherBot
  • 1,937
  • 2
  • 25
  • 32
2
votes
1 answer

java.io.FilePermission read access denied when launching applet with java 8

I have an applet class that's trying to read a file in the client's system. but when accessing this file, i get java.io.filePrmission error java.security.AccessControlException: access denied ("java.io.FilePermission"…
user4900143
  • 21
  • 1
  • 2
2
votes
1 answer

unable to fetch process time using sigar

import java.io.IOException; import org.hyperic.sigar.*; public class SigarDemo { public static void main(String args[]) throws SigarException, IOException { final Sigar sigar = new Sigar(); final long[] processes = sigar.getProcList(); …
Hiren patel
  • 971
  • 8
  • 25
2
votes
1 answer

Meaning of Java.net.SocketPermission error when downloading an applet

When downloading an applet on a remote client I see the following error message displayed in the Sun Java Console: java.security.policy: error adding Permission,java.net.SocketPermission: java.lang.IllegalArgumentException: invalid permission:…
Elliott
  • 5,523
  • 10
  • 48
  • 87
2
votes
1 answer

Is it possible to remove a Publisher Policy file?

I have a situation where a vendor-supplied assembly reference is messed up. Basically, it is pointing to a version of the assembly that I do not want to use. I used FusionLog to view the assembly binding log and I see these entries: LOG: Publisher…
Jeffrey Cameron
  • 9,975
  • 10
  • 45
  • 77
1
vote
2 answers

Can't get .NET Policy DLL to redirect application to newer assembly

My background in technical support had likely resulted in me putting far too much information in this post, leading to nobody being interested in reading it, but IMHO, more information is better than less. There is something very basic and…
Reg Domaratzki
  • 895
  • 2
  • 7
  • 11
1
vote
1 answer

Storing DLL's in A Central NON GAC Location

We are being presented with a unique, painful situation. Traditionally we have been using the GAC and Policy Files to control DLL versions for our .NET applications. However, we have a very unique situation and are running into major problems with…
Mitchel Sellers
  • 62,228
  • 14
  • 110
  • 173
1
2 3