Package java.security.cert
Interface PolicyNode
- All Known Implementing Classes:
PKIXPolicyNode
public interface PolicyNode
The interface to a valid policy tree node for the PKIX certification path
validation algorithm.
Instances of this class are one of the outputs of the PKIX certification path validation algorithm.
-
Method Summary
Modifier and Type Method Description Iterator<? extends PolicyNode>getChildren()Returns the list of children of this node as anIterator.intgetDepth()Returns the depth of this node in the policy tree.Set<String>getExpectedPolicies()Returns the expected policies for the next certificate to be valid.PolicyNodegetParent()Returns the parent policy node.Set<? extends PolicyQualifierInfo>getPolicyQualifiers()Returns the policy qualifiers associated with the policy of this node.StringgetValidPolicy()Returns the valid policy of this node.booleanisCritical()Returns whether the certificate policy extension of the most recently processed certificate is marked as critical.
-
Method Details
-
getChildren
Iterator<? extends PolicyNode> getChildren()Returns the list of children of this node as anIterator.- Returns:
- the list of children of this node as an
Iterator.
-
getDepth
int getDepth()Returns the depth of this node in the policy tree.the depth is zero based.
- Returns:
- the depth of this node in the policy tree.
-
getExpectedPolicies
Returns the expected policies for the next certificate to be valid.- Returns:
- the expected policies.
-
getParent
PolicyNode getParent()Returns the parent policy node.- Returns:
- the parent policy node.
-
getPolicyQualifiers
Set<? extends PolicyQualifierInfo> getPolicyQualifiers()Returns the policy qualifiers associated with the policy of this node.- Returns:
- the policy qualifiers associated with the policy of this node.
-
getValidPolicy
String getValidPolicy()Returns the valid policy of this node.- Returns:
- the valid policy of this node.
-
isCritical
boolean isCritical()Returns whether the certificate policy extension of the most recently processed certificate is marked as critical.- Returns:
trueif the extension is marked as critical, otherwisefalse.
-