tweak for IBM JVM.
@@ -85,7 +85,15 @@ public void testCertPathTrustManagerParameters()
PKIXBuilderParameters params = new PKIXBuilderParameters(trust, targetConstraints);
params.addCertStore(store);
params.setDate(validDate);
+
+ if (Security.getProvider("IBMJSSE2") != null)
+ {
+ params.setRevocationEnabled(false); // IBM cert path does not recognise setDate() fully.
+ }
+ else
+ {
params.setRevocationEnabled(true);
+ }
TrustManagerFactory fact = TrustManagerFactory.getInstance("PKIX", "BCJSSE");
