CryptoPermssion object missing?

David Herron David.Herron at Sun.COM
Tue Apr 8 13:30:25 PDT 2008


Jay Kline wrote:
> 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
>   
I want to add to what Jay wrote, as we were talking about this on IRC a 
few minutes ago.

Using Google I found that class is mentioned in one page on java.sun.com:
http://java.sun.com/j2se/1.4.2/docs/guide/security/jce/JCERefGuide.html

That class is not listed in the javadoc for java6
http://java.sun.com/javase/6/docs/api/index.html

It would appear to me this class (and maybe some others?) should not be 
in openjdk6 because we intend openjdk6 to pass JCK6.  But I don't know 
enough of the security end of the platform and clearly I could be mistaken.

- David Herron




More information about the jdk6-dev mailing list