提交 b6539c8b 编写于 作者: C clanger

8184673: Fix compatibility issue in AlgorithmChecker for 3rd party JCE providers

Reviewed-by: ascarpino, mullan
上级 2e1c866c
...@@ -270,7 +270,7 @@ public final class AlgorithmChecker extends PKIXCertPathChecker { ...@@ -270,7 +270,7 @@ public final class AlgorithmChecker extends PKIXCertPathChecker {
AlgorithmParameters currSigAlgParams = algorithmId.getParameters(); AlgorithmParameters currSigAlgParams = algorithmId.getParameters();
PublicKey currPubKey = cert.getPublicKey(); PublicKey currPubKey = cert.getPublicKey();
String currSigAlg = ((X509Certificate)cert).getSigAlgName(); String currSigAlg = x509Cert.getSigAlgName();
// Check the signature algorithm and parameters against constraints. // Check the signature algorithm and parameters against constraints.
if (!constraints.permits(SIGNATURE_PRIMITIVE_SET, currSigAlg, if (!constraints.permits(SIGNATURE_PRIMITIVE_SET, currSigAlg,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册