jdk/src/java.base/share/classes/sun/security/provider/certpath/SunCertPathBuilder.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2015, 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 |
342 rootNode); |
342 rootNode); |
343 checkers.add(policyChecker); |
343 checkers.add(policyChecker); |
344 |
344 |
345 // add the algorithm checker |
345 // add the algorithm checker |
346 checkers.add(new AlgorithmChecker(builder.trustAnchor, |
346 checkers.add(new AlgorithmChecker(builder.trustAnchor, |
347 buildParams.date())); |
347 buildParams.date(), null)); |
348 |
348 |
349 BasicChecker basicChecker = null; |
349 BasicChecker basicChecker = null; |
350 if (nextState.keyParamsNeeded()) { |
350 if (nextState.keyParamsNeeded()) { |
351 PublicKey rootKey = cert.getPublicKey(); |
351 PublicKey rootKey = cert.getPublicKey(); |
352 if (builder.trustAnchor.getTrustedCert() == null) { |
352 if (builder.trustAnchor.getTrustedCert() == null) { |