The PolicyNode Interface and PolicyQualifierInfo Class
The PKIX validation algorithm defines several outputs related to certificate policy processing. Most applications will not need to use these outputs, but all providers that implement the PKIX validation or building algorithm must support them.
The PolicyNode
interface represents a node of
a valid policy tree resulting from a successful execution of the PKIX
certification path validation. An application can obtain the root
of a valid policy tree using the getPolicyTree
method
of PKIXCertPathValidatorResult
. Policy trees are
discussed in more detail in the PKIX Certificate and CRL Profile.
The getPolicyQualifiers
method of PolicyNode
returns a Set
of PolicyQualifierInfo
objects, each of which represents a policy qualifier contained in
the Certificate Policies extension of the relevant certificate that
this policy applies to.
Most applications will not need to examine the valid policy tree
and policy qualifiers. They can achieve their policy processing goals
by setting the policy-related parameters in PKIXParameters
. However, the valid policy tree is available for more sophisticated
applications, especially those that process policy qualifiers.
Refer to the PolicyNode and PolicyQualifierInfo API documentation for more detailed information on these classes.