Lines Matching defs:rootNode

66     private PolicyNodeImpl rootNode;
86 * @param rootNode the initial root node of the valid policy tree
91 PolicyNodeImpl rootNode)
106 this.rootNode = rootNode;
213 + "policyTree = " + rootNode);
225 rootNode = processPolicies(certIndex, initPolicies, explicitPolicy,
226 policyMapping, inhibitAnyPolicy, rejectPolicyQualifiers, rootNode,
247 + "policyTree = " + rootNode);
433 PolicyNodeImpl rootNode = null;
437 rootNode = null;
439 rootNode = origRootNode.copyTree();
446 if ((currCertPolicies != null) && (rootNode != null)) {
494 policiesCritical, rejectPolicyQualifiers, rootNode,
500 rejectPolicyQualifiers, rootNode, curPolicy,
515 rejectPolicyQualifiers, rootNode, ANY_POLICY, anyQuals,
521 rootNode.prune(certIndex);
522 if (!rootNode.getChildren().hasNext()) {
523 rootNode = null;
530 rootNode = null;
536 if (rootNode != null) {
539 rootNode = processPolicyMappings(currCert, certIndex,
540 policyMapping, rootNode, policiesCritical, anyQuals);
548 if ((rootNode != null) && (!initPolicies.contains(ANY_POLICY))
550 rootNode = removeInvalidNodes(rootNode, certIndex,
554 if ((rootNode != null) && finalCert) {
556 rootNode = rewriteLeafNodes(certIndex, initPolicies, rootNode);
571 if ((explicitPolicy == 0) && (rootNode == null)) {
577 return rootNode;
592 * @param rootNode the root of the policy tree
595 Set<String> initPolicies, PolicyNodeImpl rootNode) {
597 rootNode.getPolicyNodesValid(certIndex, ANY_POLICY);
599 return rootNode;
606 for (PolicyNodeImpl node : rootNode.getPolicyNodes(certIndex)) {
612 rootNode.prune(certIndex);
613 if (rootNode.getChildren().hasNext() == false) {
614 rootNode = null;
626 return rootNode;
644 * @param rootNode the root node of the valid policy tree
655 PolicyNodeImpl rootNode, String curPolicy,
667 rootNode.getPolicyNodesExpected(certIndex - 1,
729 * @param rootNode the root node of the valid policy tree
739 int certIndex, int policyMapping, PolicyNodeImpl rootNode,
747 return rootNode;
792 rootNode.getPolicyNodesValid(certIndex, issuerDomain);
803 + rootNode);
809 + rootNode);
815 rootNode.getPolicyNodesValid(certIndex, ANY_POLICY);
832 rootNode.prune(certIndex);
833 if (!rootNode.getChildren().hasNext()) {
835 debug.println("setting rootNode to null");
836 rootNode = null;
840 return rootNode;
847 * @param rootNode the root node of the valid policy tree
855 private static PolicyNodeImpl removeInvalidNodes(PolicyNodeImpl rootNode,
878 rootNode.getPolicyNodesValid(certIndex, curPolicy);
886 + "before deleting: policy tree = " + rootNode);
891 + "after deleting: policy tree = " + rootNode);
898 rootNode.prune(certIndex);
899 if (!rootNode.getChildren().hasNext()) {
900 rootNode = null;
904 return rootNode;
916 if (rootNode == null)
919 PolicyNodeImpl policyTree = rootNode.copyTree();