public interface PolicyNode
One of the outputs of the PKIX certification path validation algorithm is a valid policy tree, which includes the policies that were determined to be valid, how this determination was reached, and any policy qualifiers encountered. This tree is of depth n, where n is the length of the certification path that has been validated.
Most applications will not need to examine the valid policy tree.
They can achieve their policy processing goals by setting the
policy-related parameters in
the valid policy tree is available for more sophisticated applications,
especially those that process policy qualifiers.
PKIXCertPathValidatorResult.getPolicyTree returns the root node of the
valid policy tree. The tree can be traversed using the
Data about a particular node can be retrieved using other methods of
PolicyNode objects must be immutable and
thread-safe. Multiple threads may concurrently invoke the methods defined
in this class on a single
PolicyNode object (or more than one)
with no ill effects. This stipulation applies to all public fields and
methods of this class and any added or overridden by subclasses.
|Modifier and Type||Method and Description|
Returns an iterator over the children of this node.
Returns the depth of this node in the valid policy tree.
Returns the set of expected policies that would satisfy this node's valid policy in the next certificate to be processed.
Returns the parent of this node, or
Returns the set of policy qualifiers associated with the valid policy represented by this node.
Returns the valid policy represented by this node.
Returns the criticality indicator of the certificate policy extension in the most recently processed certificate.
nullif this is the root node.
nullif this is the root node
Iterator<? extends PolicyNode> getChildren()
Iterator's remove method must throw an
StringOID of the valid policy represented by this node. For the root node, this method always returns the special anyPolicy OID: "220.127.116.11.0".
Set<? extends PolicyQualifierInfo> getPolicyQualifiers()
PolicyQualifierInfos. For the root node, this is always an empty
Setof expected policy
StringOIDs. For the root node, this method always returns a
Setwith one element, the special anyPolicy OID: "18.104.22.168.0".
trueif extension marked critical,
falseotherwise. For the root node,
falseis always returned.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2018, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.