8184673: Fix compatibility issue in AlgorithmChecker for 3rd party JCE providers
authorclanger
Mon, 17 Jul 2017 11:47:12 +0200
changeset 45889 605589f46d2a
parent 45888 ae448cf92e00
child 45890 cabbc1289586
8184673: Fix compatibility issue in AlgorithmChecker for 3rd party JCE providers Reviewed-by: ascarpino, mullan
jdk/src/java.base/share/classes/sun/security/provider/certpath/AlgorithmChecker.java
--- a/jdk/src/java.base/share/classes/sun/security/provider/certpath/AlgorithmChecker.java	Sat Jul 15 14:01:49 2017 -0700
+++ b/jdk/src/java.base/share/classes/sun/security/provider/certpath/AlgorithmChecker.java	Mon Jul 17 11:47:12 2017 +0200
@@ -270,7 +270,7 @@
 
         AlgorithmParameters currSigAlgParams = algorithmId.getParameters();
         PublicKey currPubKey = cert.getPublicKey();
-        String currSigAlg = ((X509Certificate)cert).getSigAlgName();
+        String currSigAlg = x509Cert.getSigAlgName();
 
         // Check the signature algorithm and parameters against constraints.
         if (!constraints.permits(SIGNATURE_PRIMITIVE_SET, currSigAlg,