java.security.cert

Interface PolicyNode

public interface PolicyNode

Since: 1.4

Method Summary
Iterator<? extends PolicyNode>getChildren()
Get the iterator of the child nodes of this node.
intgetDepth()
Get the depth of this node within the tree, starting at 0 for the root node.
Set<String>getExpectedPolicies()
Returns a set of policies (string OIDs) that will satisfy this node's policy.
PolicyNodegetParent()
Returns the parent node of this node, or null if this is the root node.
Set<? extends PolicyQualifierInfo>getPolicyQualifiers()
Returns a set of {@link PolicyQualifierInfo} objects that qualify the valid policy of this node.
StringgetValidPolicy()
Get the policy OID this node represents.
booleanisCritical()
Return the criticality flag of this policy node.

Method Detail

getChildren

public Iterator<? extends PolicyNode> getChildren()
Get the iterator of the child nodes of this node. The returned iterator is (naturally) unmodifiable.

Returns: An iterator over the child nodes.

getDepth

public int getDepth()
Get the depth of this node within the tree, starting at 0 for the root node.

Returns: The depth of this node.

getExpectedPolicies

public Set<String> getExpectedPolicies()
Returns a set of policies (string OIDs) that will satisfy this node's policy. The root node should always return the singleton set with the element "any-policy".

Returns: The set of expected policies.

getParent

public PolicyNode getParent()
Returns the parent node of this node, or null if this is the root node.

Returns: The parent node, or null.

getPolicyQualifiers

public Set<? extends PolicyQualifierInfo> getPolicyQualifiers()
Returns a set of {@link PolicyQualifierInfo} objects that qualify the valid policy of this node. The root node should always return the empty set.

Returns: The set of {@link PolicyQualifierInfo} objects.

getValidPolicy

public String getValidPolicy()
Get the policy OID this node represents. The root node should return the special value "any-policy".

Returns: The policy of this node.

isCritical

public boolean isCritical()
Return the criticality flag of this policy node. Nodes who return true for this method should be considered critical. The root node is never critical.

Returns: The criticality flag.