public class PKIXPolicyNode extends Object implements PolicyNode
| Modifier and Type | Field and Description |
|---|---|
protected List |
children |
protected boolean |
critical |
protected int |
depth |
protected Set |
expectedPolicies |
protected PolicyNode |
parent |
protected Set |
policyQualifiers |
protected String |
validPolicy |
| Constructor and Description |
|---|
PKIXPolicyNode(List _children,
int _depth,
Set _expectedPolicies,
PolicyNode _parent,
Set _policyQualifiers,
String _validPolicy,
boolean _critical) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(PKIXPolicyNode _child) |
Object |
clone()
Creates and returns a copy of this
Object. |
PKIXPolicyNode |
copy() |
Iterator |
getChildren()
Returns the list of children of this node as an
Iterator. |
int |
getDepth()
Returns the depth of this node in the policy tree.
|
Set |
getExpectedPolicies()
Returns the expected policies for the next certificate to be valid.
|
PolicyNode |
getParent()
Returns the parent policy node.
|
Set |
getPolicyQualifiers()
Returns the policy qualifiers associated with the policy of this node.
|
String |
getValidPolicy()
Returns the valid policy of this node.
|
boolean |
hasChildren() |
boolean |
isCritical()
Returns whether the certificate policy extension of the most recently
processed certificate is marked as critical.
|
void |
removeChild(PKIXPolicyNode _child) |
void |
setCritical(boolean _critical) |
void |
setExpectedPolicies(Set expectedPolicies) |
void |
setParent(PKIXPolicyNode _parent) |
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
String |
toString(String _indent) |
protected List children
protected int depth
protected Set expectedPolicies
protected PolicyNode parent
protected Set policyQualifiers
protected String validPolicy
protected boolean critical
public PKIXPolicyNode(List _children, int _depth, Set _expectedPolicies, PolicyNode _parent, Set _policyQualifiers, String _validPolicy, boolean _critical)
public void addChild(PKIXPolicyNode _child)
public Iterator getChildren()
PolicyNodeIterator.getChildren in interface PolicyNodeIterator.public int getDepth()
PolicyNodethe depth is zero based.
getDepth in interface PolicyNodepublic Set getExpectedPolicies()
PolicyNodegetExpectedPolicies in interface PolicyNodepublic PolicyNode getParent()
PolicyNodegetParent in interface PolicyNodepublic Set getPolicyQualifiers()
PolicyNodegetPolicyQualifiers in interface PolicyNodepublic String getValidPolicy()
PolicyNodegetValidPolicy in interface PolicyNodepublic boolean hasChildren()
public boolean isCritical()
PolicyNodeisCritical in interface PolicyNodetrue if the extension is marked as critical, otherwise
false.public void removeChild(PKIXPolicyNode _child)
public void setCritical(boolean _critical)
public void setParent(PKIXPolicyNode _parent)
public String toString()
ObjectgetClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString method
if you intend implementing your own toString method.
public Object clone()
ObjectObject. The default
implementation returns a so-called "shallow" copy: It creates a new
instance of the same class and then copies the field values (including
object references) from this instance to the new instance. A "deep" copy,
in contrast, would also recursively clone nested objects. A subclass that
needs to implement this kind of cloning should call super.clone()
to create the new instance and then create deep copies of the nested,
mutable objects.public PKIXPolicyNode copy()
public void setExpectedPolicies(Set expectedPolicies)