jdk/src/java.base/share/classes/sun/security/provider/certpath/PKIXCertPathValidator.java
changeset 43701 fe8c324ba97c
parent 39465 8c06651d9138
child 44158 49deb8a1ed3f
equal deleted inserted replaced
43700:ee6b5bd26bf9 43701:fe8c324ba97c
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   171         // create PKIXCertPathCheckers
   171         // create PKIXCertPathCheckers
   172         List<PKIXCertPathChecker> certPathCheckers = new ArrayList<>();
   172         List<PKIXCertPathChecker> certPathCheckers = new ArrayList<>();
   173         // add standard checkers that we will be using
   173         // add standard checkers that we will be using
   174         certPathCheckers.add(untrustedChecker);
   174         certPathCheckers.add(untrustedChecker);
   175         if (params.timestamp() == null) {
   175         if (params.timestamp() == null) {
   176             certPathCheckers.add(new AlgorithmChecker(anchor, params.date()));
   176             certPathCheckers.add(new AlgorithmChecker(anchor, params.date(), null));
   177         } else {
   177         } else {
   178             certPathCheckers.add(new AlgorithmChecker(params.timestamp()));
   178             certPathCheckers.add(new AlgorithmChecker(null,
       
   179                     params.timestamp(), params.variant()));
   179         }
   180         }
   180         certPathCheckers.add(new KeyChecker(certPathLen,
   181         certPathCheckers.add(new KeyChecker(certPathLen,
   181                                             params.targetCertConstraints()));
   182                                             params.targetCertConstraints()));
   182         certPathCheckers.add(new ConstraintsChecker(certPathLen));
   183         certPathCheckers.add(new ConstraintsChecker(certPathLen));
   183         PolicyNodeImpl rootNode =
   184         PolicyNodeImpl rootNode =