F-4363: use value equality for FIPS sigProvider check in engineValidate

pull/238/head
Chris Conlon 2026-07-08 14:00:17 -06:00
parent 49c51fbc6f
commit 118af16df6
1 changed files with 1 additions and 1 deletions

View File

@ -1072,7 +1072,7 @@ public class WolfCryptPKIXCertPathValidator extends CertPathValidatorSpi {
/* If we are in FIPS mode, verify wolfJCE is the Signature provider
* to help maintain FIPS compliance */
if (Fips.enabled && pkixParams.getSigProvider() != "wolfJCE") {
if (Fips.enabled && !"wolfJCE".equals(pkixParams.getSigProvider())) {
if (pkixParams.getSigProvider() == null) {
/* Preferred Signature provider not set, set to wolfJCE */
pkixParams.setSigProvider("wolfJCE");