jdk/src/share/classes/sun/security/provider/certpath/RevocationChecker.java
changeset 22968 cf587f317be6
parent 22107 3e6b0718041e
equal deleted inserted replaced
22967:bfcfd51c9e5c 22968:cf587f317be6
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2014, 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
  1033                     prevKey2 = ta.getTrustedCert().getPublicKey();
  1033                     prevKey2 = ta.getTrustedCert().getPublicKey();
  1034                 }
  1034                 }
  1035                 boolean signFlag = true;
  1035                 boolean signFlag = true;
  1036                 List<? extends Certificate> cpList =
  1036                 List<? extends Certificate> cpList =
  1037                     cpbr.getCertPath().getCertificates();
  1037                     cpbr.getCertPath().getCertificates();
       
  1038                 if (cpList.isEmpty()) {
       
  1039                     return;
       
  1040                 }
  1038                 try {
  1041                 try {
  1039                     for (int i = cpList.size()-1; i >= 0; i-- ) {
  1042                     for (int i = cpList.size()-1; i >= 0; i-- ) {
  1040                         X509Certificate cert = (X509Certificate)cpList.get(i);
  1043                         X509Certificate cert = (X509Certificate)cpList.get(i);
  1041 
  1044 
  1042                         if (debug != null) {
  1045                         if (debug != null) {