Methods Summary |
---|
public void | addChild(org.bouncycastle.jce.provider.PKIXPolicyNode _child)
children.add(_child);
_child.setParent(this);
|
public java.lang.Object | clone()
return copy();
|
public org.bouncycastle.jce.provider.PKIXPolicyNode | copy()
Set _expectedPolicies = new HashSet();
Iterator _iter = expectedPolicies.iterator();
while (_iter.hasNext())
{
_expectedPolicies.add(new String((String)_iter.next()));
}
Set _policyQualifiers = new HashSet();
_iter = policyQualifiers.iterator();
while (_iter.hasNext())
{
_policyQualifiers.add(new String((String)_iter.next()));
}
PKIXPolicyNode _node = new PKIXPolicyNode(new ArrayList(),
depth,
_expectedPolicies,
null,
_policyQualifiers,
new String(validPolicy),
critical);
_iter = children.iterator();
while (_iter.hasNext())
{
PKIXPolicyNode _child = ((PKIXPolicyNode)_iter.next()).copy();
_child.setParent(_node);
_node.addChild(_child);
}
return _node;
|
public java.util.Iterator | getChildren()
return children.iterator();
|
public int | getDepth()
return depth;
|
public java.util.Set | getExpectedPolicies()
return expectedPolicies;
|
public java.security.cert.PolicyNode | getParent()
return parent;
|
public java.util.Set | getPolicyQualifiers()
return policyQualifiers;
|
public java.lang.String | getValidPolicy()
return validPolicy;
|
public boolean | hasChildren()
return !children.isEmpty();
|
public boolean | isCritical()
return critical;
|
public void | removeChild(org.bouncycastle.jce.provider.PKIXPolicyNode _child)
children.remove(_child);
|
public void | setCritical(boolean _critical)
critical = _critical;
|
public void | setParent(org.bouncycastle.jce.provider.PKIXPolicyNode _parent)
parent = _parent;
|
public java.lang.String | toString()
return toString("");
|
public java.lang.String | toString(java.lang.String _indent)
StringBuffer _buf = new StringBuffer();
_buf.append(_indent);
_buf.append(validPolicy);
_buf.append(" {\n");
for(int i = 0; i < children.size(); i++)
{
_buf.append(((PKIXPolicyNode)children.get(i)).toString(_indent + " "));
}
_buf.append(_indent);
_buf.append("}\n");
return _buf.toString();
|