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

Reviewed-by: ascarpino, mullan
This commit is contained in:
Christoph Langer 2017-07-17 11:47:12 +02:00
parent 5848e1bac4
commit de7cf682e8

View File

@ -270,7 +270,7 @@ public final class AlgorithmChecker extends PKIXCertPathChecker {
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,