use of com.github.zhenwei.provider.jce.provider.PKIXPolicyNode in project LinLong-Java by zhenwei1108.
the class CertPathValidatorUtilities method processCertD1ii.
protected static void processCertD1ii(int index, List[] policyNodes, ASN1ObjectIdentifier _poid, Set _pq) {
List policyNodeVec = policyNodes[index - 1];
for (int j = 0; j < policyNodeVec.size(); j++) {
PKIXPolicyNode _node = (PKIXPolicyNode) policyNodeVec.get(j);
if (ANY_POLICY.equals(_node.getValidPolicy())) {
Set _childExpectedPolicies = new HashSet();
_childExpectedPolicies.add(_poid.getId());
PKIXPolicyNode _child = new PKIXPolicyNode(new ArrayList(), index, _childExpectedPolicies, _node, _pq, _poid.getId(), false);
_node.addChild(_child);
policyNodes[index].add(_child);
return;
}
}
}
use of com.github.zhenwei.provider.jce.provider.PKIXPolicyNode in project LinLong-Java by zhenwei1108.
the class CertPathValidatorUtilities method removePolicyNode.
protected static PKIXPolicyNode removePolicyNode(PKIXPolicyNode validPolicyTree, List[] policyNodes, PKIXPolicyNode _node) {
PKIXPolicyNode _parent = (PKIXPolicyNode) _node.getParent();
if (validPolicyTree == null) {
return null;
}
if (_parent == null) {
for (int j = 0; j < policyNodes.length; j++) {
policyNodes[j] = new ArrayList();
}
return null;
} else {
_parent.removeChild(_node);
removePolicyNodeRecurse(policyNodes, _node);
return validPolicyTree;
}
}
Aggregations