We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abb7b81 commit d7ad0ccCopy full SHA for d7ad0cc
src/java.base/share/classes/java/security/Signature.java
@@ -251,6 +251,7 @@ protected Signature(String algorithm) {
251
public static Signature getInstance(String algorithm)
252
throws NoSuchAlgorithmException {
253
Objects.requireNonNull(algorithm, "null algorithm name");
254
+
255
if (!CryptoAlgorithmConstraints.permits("Signature", algorithm)) {
256
throw new NoSuchAlgorithmException(algorithm + " is disabled");
257
}
0 commit comments