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.
 int getDepth()
          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.
 PolicyNode getParent()
          Returns the parent node of this node, or null if this is the root node.
 Set<? extends PolicyQualifierInfo> getPolicyQualifiers()
          Returns a set of PolicyQualifierInfo objects that qualify the valid policy of this node.
 String getValidPolicy()
          Get the policy OID this node represents.
 boolean isCritical()
          Return the criticality flag of this policy node.
 

Method Detail

getChildren

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

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

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

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

Returns:
The parent node, or null.

getPolicyQualifiers

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

Returns:
The set of PolicyQualifierInfo objects.

getValidPolicy

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

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.