8272708: [Test]: Cleanup: test/jdk/security/infra/java/security/cert/CertPathValidator/certification/BuypassCA.java no longer needs ocspEnabled
Reviewed-by: rhalade
This commit is contained in:
parent
ddcd851c43
commit
4bd37c3153
@ -57,18 +57,15 @@ public class BuypassCA {
|
|||||||
|
|
||||||
ValidatePathWithParams pathValidator = new ValidatePathWithParams(null);
|
ValidatePathWithParams pathValidator = new ValidatePathWithParams(null);
|
||||||
|
|
||||||
boolean ocspEnabled = true;
|
|
||||||
|
|
||||||
if (args.length >= 1 && "CRL".equalsIgnoreCase(args[0])) {
|
if (args.length >= 1 && "CRL".equalsIgnoreCase(args[0])) {
|
||||||
pathValidator.enableCRLCheck();
|
pathValidator.enableCRLCheck();
|
||||||
ocspEnabled = false;
|
|
||||||
} else {
|
} else {
|
||||||
// OCSP check by default
|
// OCSP check by default
|
||||||
pathValidator.enableOCSPCheck();
|
pathValidator.enableOCSPCheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
new BuypassClass2().runTest(pathValidator);
|
new BuypassClass2().runTest(pathValidator);
|
||||||
new BuypassClass3().runTest(pathValidator, ocspEnabled);
|
new BuypassClass3().runTest(pathValidator);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -320,8 +317,7 @@ class BuypassClass3 {
|
|||||||
"BJmiWd5uUxev0nVw0saqvlo4yAEBq4rI/DieKcQI4qEI8myzoS0R0azMfLM=\n" +
|
"BJmiWd5uUxev0nVw0saqvlo4yAEBq4rI/DieKcQI4qEI8myzoS0R0azMfLM=\n" +
|
||||||
"-----END CERTIFICATE-----";
|
"-----END CERTIFICATE-----";
|
||||||
|
|
||||||
public void runTest(ValidatePathWithParams pathValidator, boolean ocspEnabled)
|
public void runTest(ValidatePathWithParams pathValidator) throws Exception {
|
||||||
throws Exception {
|
|
||||||
// Validate valid
|
// Validate valid
|
||||||
pathValidator.validate(new String[]{VALID_CLASS_3, INT_CLASS_3},
|
pathValidator.validate(new String[]{VALID_CLASS_3, INT_CLASS_3},
|
||||||
ValidatePathWithParams.Status.GOOD, null, System.out);
|
ValidatePathWithParams.Status.GOOD, null, System.out);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user