CryptoPermssion object missing?
Sharon Liu
Sharon.Liu at Sun.COM
Tue Apr 8 17:07:38 PDT 2008
Jay,
> Im trying to figure out how to check what the permissions of the JCE
> allow at runtime
What the JCE allows at runtime is defined in the JCE jurisdiction policy
file.
> The policy file uses javax.crypto.CryptoPermission as the permission name,
> and from what I can tell in the JCE for 1.4 that existed as an object,
> and it appears to be in the openjdk for 6 and 7. However, the Sun JDK
> has no such object (either 5 or 6).
The javax.crypto.CryptoPermission class isn't a public class since it
is only used by the JCE framework internally at runtime. This class
exists in Sun's JDK 5 and 6 as well.
Hope this helps,
Sharon
Subject:
CryptoPermssion object missing?
From:
Jay Kline <slushpupie at gmail.com>
Date:
Tue, 08 Apr 2008 14:23:13 -0500
To:
jdk6-dev at openjdk.java.net
Im trying to figure out how to check what the permissions of the JCE
allow at runtime and have run into a bit of a stumbling block. The
policy file uses javax.crypto.CryptoPermission as the permission name,
and from what I can tell in the JCE for 1.4 that existed as an object,
and it appears to be in the openjdk for 6 and 7. However, the Sun JDK
has no such object (either 5 or 6).
What is the correct way to check for these permissions then? Its a
little confusing since I cant seem to determine if that object should
really exist.
Thanks,
Jay
More information about the jdk6-dev
mailing list