-
public interface PolicyNode
An immutable valid policy tree node as defined by the PKIX certification path validation algorithm.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
PKIXParameters
. However, 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 thegetChildren
andgetParent
methods. Data about a particular node can be retrieved using other methods ofPolicyNode
.Concurrent Access
All
PolicyNode
objects must be immutable and thread-safe. Multiple threads may concurrently invoke the methods defined in this class on a singlePolicyNode
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.- Since:
- 1.4
-
-
Method Summary
Methods Modifier and Type Method and Description Iterator<? extends PolicyNode>
getChildren()
Returns an iterator over the children of this node.int
getDepth()
Returns the depth of this node in the valid policy tree.Set<String>
getExpectedPolicies()
Returns the set of expected policies that would satisfy this node's valid policy in the next certificate to be processed.PolicyNode
getParent()
Returns the parent of this node, ornull
if this is the root node.Set<? extends PolicyQualifierInfo>
getPolicyQualifiers()
Returns the set of policy qualifiers associated with the valid policy represented by this node.String
getValidPolicy()
Returns the valid policy represented by this node.boolean
isCritical()
Returns the criticality indicator of the certificate policy extension in the most recently processed certificate.
-
-
-
Method Detail
-
getParent
PolicyNode getParent()
Returns the parent of this node, ornull
if this is the root node.- Returns:
- the parent of this node, or
null
if this is the root node
-
getChildren
Iterator<? extends PolicyNode> getChildren()
Returns an iterator over the children of this node. Any attempts to modify the children of this node through theIterator
's remove method must throw anUnsupportedOperationException
.- Returns:
- an iterator over the children of this node
-
getDepth
int getDepth()
Returns the depth of this node in the valid policy tree.- Returns:
- the depth of this node (0 for the root node, 1 for its children, and so on)
-
getValidPolicy
String getValidPolicy()
Returns the valid policy represented by this node.- Returns:
- the
String
OID of the valid policy represented by this node. For the root node, this method always returns the special anyPolicy OID: "2.5.29.32.0".
-
getPolicyQualifiers
Set<? extends PolicyQualifierInfo> getPolicyQualifiers()
Returns the set of policy qualifiers associated with the valid policy represented by this node.- Returns:
- an immutable
Set
ofPolicyQualifierInfo
s. For the root node, this is always an emptySet
.
-
getExpectedPolicies
Set<String> getExpectedPolicies()
Returns the set of expected policies that would satisfy this node's valid policy in the next certificate to be processed.- Returns:
- an immutable
Set
of expected policyString
OIDs. For the root node, this method always returns aSet
with one element, the special anyPolicy OID: "2.5.29.32.0".
-
isCritical
boolean isCritical()
Returns the criticality indicator of the certificate policy extension in the most recently processed certificate.- Returns:
true
if extension marked critical,false
otherwise. For the root node,false
is always returned.
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
22/11/2024 02:09:47 Cette version de la page est en cache (à la date du 22/11/2024 02:09:47) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.Document créé le 30/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/security/cert/PolicyNode.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.