jdk/src/share/classes/sun/security/provider/certpath/PKIXCertPathValidator.java
changeset 4190 227655c2ff8c
parent 1238 6d1f4b722acd
child 4209 e2e5a973b879
equal deleted inserted replaced
4189:5fd64379cea5 4190:227655c2ff8c
     1 /*
     1 /*
     2  * Copyright 2000-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 2000-2009 Sun Microsystems, Inc.  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.  Sun designates this
     7  * published by the Free Software Foundation.  Sun designates this
   274             PolicyNodeImpl rootNode) throws CertPathValidatorException
   274             PolicyNodeImpl rootNode) throws CertPathValidatorException
   275     {
   275     {
   276         int certPathLen = certList.size();
   276         int certPathLen = certList.size();
   277 
   277 
   278         basicChecker = new BasicChecker(anchor, testDate, sigProvider, false);
   278         basicChecker = new BasicChecker(anchor, testDate, sigProvider, false);
       
   279         AlgorithmChecker algorithmChecker= AlgorithmChecker.getInstance();
   279         KeyChecker keyChecker = new KeyChecker(certPathLen,
   280         KeyChecker keyChecker = new KeyChecker(certPathLen,
   280             pkixParam.getTargetCertConstraints());
   281             pkixParam.getTargetCertConstraints());
   281         ConstraintsChecker constraintsChecker =
   282         ConstraintsChecker constraintsChecker =
   282             new ConstraintsChecker(certPathLen);
   283             new ConstraintsChecker(certPathLen);
   283 
   284 
   290                               rootNode);
   291                               rootNode);
   291 
   292 
   292         ArrayList<PKIXCertPathChecker> certPathCheckers =
   293         ArrayList<PKIXCertPathChecker> certPathCheckers =
   293             new ArrayList<PKIXCertPathChecker>();
   294             new ArrayList<PKIXCertPathChecker>();
   294         // add standard checkers that we will be using
   295         // add standard checkers that we will be using
       
   296         certPathCheckers.add(algorithmChecker);
   295         certPathCheckers.add(keyChecker);
   297         certPathCheckers.add(keyChecker);
   296         certPathCheckers.add(constraintsChecker);
   298         certPathCheckers.add(constraintsChecker);
   297         certPathCheckers.add(policyChecker);
   299         certPathCheckers.add(policyChecker);
   298         certPathCheckers.add(basicChecker);
   300         certPathCheckers.add(basicChecker);
   299 
   301