8184673: Fix compatibility issue in AlgorithmChecker for 3rd party JCE providers
Reviewed-by: ascarpino, mullan
This commit is contained in:
parent
5848e1bac4
commit
de7cf682e8
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user