jdk/src/share/classes/sun/security/provider/certpath/ReverseBuilder.java
changeset 11900 9b1d5bef8038
parent 7040 659824c2a550
child 12861 7aa4d0b3a8c7
equal deleted inserted replaced
11899:d2eb55fd95a1 11900:9b1d5bef8038
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2012, 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
   345         /* we don't perform any validation of the trusted cert */
   345         /* we don't perform any validation of the trusted cert */
   346         if (currentState.isInitial()) {
   346         if (currentState.isInitial()) {
   347             return;
   347             return;
   348         }
   348         }
   349 
   349 
       
   350         // Don't bother to verify untrusted certificate more.
       
   351         currentState.untrustedChecker.check(cert,
       
   352                                     Collections.<String>emptySet());
       
   353 
   350         /*
   354         /*
   351          * check for looping - abort a loop if
   355          * check for looping - abort a loop if
   352          * ((we encounter the same certificate twice) AND
   356          * ((we encounter the same certificate twice) AND
   353          * ((policyMappingInhibited = true) OR (no policy mapping
   357          * ((policyMappingInhibited = true) OR (no policy mapping
   354          * extensions can be found between the occurences of the same
   358          * extensions can be found between the occurences of the same