|
Duplicate :
|
|
|
Relates :
|
|
|
Relates :
|
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);
}
|