mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-01 18:50:17 +00:00
8296480: java/security/cert/pkix/policyChanges/TestPolicy.java is failing
Reviewed-by: xuelei, mullan
This commit is contained in:
parent
3baad069a6
commit
b6ea69c06a
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,6 +34,7 @@
|
||||
*/
|
||||
|
||||
import java.io.*;
|
||||
import java.text.DateFormat;
|
||||
import java.util.*;
|
||||
|
||||
import java.security.Security;
|
||||
@ -97,6 +98,10 @@ public class TestPolicy {
|
||||
params.setRevocationEnabled(false);
|
||||
params.setInitialPolicies(testCase.initialPolicies);
|
||||
|
||||
// Certs expired on 7th Nov 2022
|
||||
params.setDate(DateFormat.getDateInstance(DateFormat.MEDIUM,
|
||||
Locale.US).parse("June 01, 2022"));
|
||||
|
||||
CertPath path = factory.generateCertPath(Arrays.asList(new X509Certificate[] {ee, ca}));
|
||||
|
||||
PKIXCertPathValidatorResult result = (PKIXCertPathValidatorResult)validator.validate(path, params);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user