I want my program to use 256 bits key for encryption with Rijndael.
Everything is working up to a moment when i want to install "Unlimited
Strength Jurisdiction Policy Files" : Local_policy.jar and
US_export_policy.jar from command line. I don;t want to copy those files to
(java home)\jre\lib\security directory. I want only to make them available
during the runtime of my program. Do you happen to know how can I do it? i
think that i have to write something like that in command line :
java -Djava.security.manager -Djava.security.policy= example.policy MyApp
in the file example.policy i have the following:
grant codeBase "file:/Policy/*" {
permission java.security.AllPermission;
};
grant {
permission java.security.AllPermission;
};
But i still get an error : Unsupported keysize or algorithm parameters".
What can be a solution for it??
Regards
DJKapi
Artur Go?da - 23 Jan 2005 18:50 GMT
> I want my program to use 256 bits key for encryption with Rijndael.
> Everything is working up to a moment when i want to install "Unlimited
[quoted text clipped - 19 lines]
> Regards
> DJKapi
try to set corresponding security provider in code like that:
Security.addProvider(new name_of_provider_class());
regards,
artur