jdk/src/java.base/share/classes/sun/security/provider/certpath/PolicyChecker.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 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 |
576 |
576 |
577 return rootNode; |
577 return rootNode; |
578 } |
578 } |
579 |
579 |
580 /** |
580 /** |
581 * Rewrite leaf nodes at the end of validation as described in RFC 3280 |
581 * Rewrite leaf nodes at the end of validation as described in RFC 5280 |
582 * section 6.1.5: Step (g)(iii). Leaf nodes with anyPolicy are replaced |
582 * section 6.1.5: Step (g)(iii). Leaf nodes with anyPolicy are replaced |
583 * by nodes explicitly representing initial policies not already |
583 * by nodes explicitly representing initial policies not already |
584 * represented by leaf nodes. |
584 * represented by leaf nodes. |
585 * |
585 * |
586 * This method should only be called when processing the final cert |
586 * This method should only be called when processing the final cert |