-
Enhancement
-
Resolution: Won't Fix
-
P3
-
None
-
8
We should consider improving the exception messages thrown when applications are denied a request for a strong encryption ciphers. i.e. Message should hint at obtaining unlimited strength JCE policy files. It should help clear confusion for some users/developers that may not be aware of the strong versus stronger JCE policy files configuration.
An example would be to make this exception more verbose in messaging :
jdk/src/share/classes/javax/crypto/Cipher.java#1068
if (!cryptoPerm.implies(checkPerm)) {
if (debug != null) {
debug.println("Crypto Permission check failed");
debug.println("granted: " + cryptoPerm);
debug.println("requesting: " + checkPerm);
}
An example would be to make this exception more verbose in messaging :
jdk/src/share/classes/javax/crypto/Cipher.java#1068
if (!cryptoPerm.implies(checkPerm)) {
if (debug != null) {
debug.println("Crypto Permission check failed");
debug.println("granted: " + cryptoPerm);
debug.println("requesting: " + checkPerm);
}
- duplicates
-
JDK-8146315 Better diagnostic information when unlimited policy files are missing
- Closed
- relates to
-
JDK-7024850 Consider shipping Unlimited Crypto Policy files by default.
- Resolved
-
JDK-8146315 Better diagnostic information when unlimited policy files are missing
- Closed