jdk/src/java.base/share/classes/sun/security/provider/certpath/SunCertPathBuilder.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2015, 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 |
134 private PKIXCertPathBuilderResult build() throws CertPathBuilderException { |
134 private PKIXCertPathBuilderResult build() throws CertPathBuilderException { |
135 List<List<Vertex>> adjList = new ArrayList<>(); |
135 List<List<Vertex>> adjList = new ArrayList<>(); |
136 PKIXCertPathBuilderResult result = buildCertPath(false, adjList); |
136 PKIXCertPathBuilderResult result = buildCertPath(false, adjList); |
137 if (result == null) { |
137 if (result == null) { |
138 if (debug != null) { |
138 if (debug != null) { |
139 debug.println("SunCertPathBuilder.engineBuild: 2nd pass"); |
139 debug.println("SunCertPathBuilder.engineBuild: 2nd pass; " + |
|
140 "try building again searching all certstores"); |
140 } |
141 } |
141 // try again |
142 // try again |
142 adjList.clear(); |
143 adjList.clear(); |
143 result = buildCertPath(true, adjList); |
144 result = buildCertPath(true, adjList); |
144 if (result == null) { |
145 if (result == null) { |