Top Fields Constructors Methods
org.bouncycastle.jcajce.provider

pack-priv Class PKIXPolicyNode

extends Object
implements PolicyNode
Class Inheritance
All Implemented Interfaces
java.security.cert.PolicyNode
Imports
java.security.cert.PolicyNode, java.util.Iterator, .List, .Set

Field Summary

Modifier and TypeField and Description
protected List<E>
protected boolean
protected int
protected Set<E>
protected PolicyNode
protected Set<E>
protected String

Constructor Summary

AccessConstructor and Description
public
PKIXPolicyNode(List<E> _children, int _depth, Set<E> _expectedPolicies, PolicyNode _parent, Set<E> _policyQualifiers, String _validPolicy, boolean _critical)

Method Summary

Modifier and TypeMethod and Description
public void
public Iterator<E>
getChildren()

Implements java.security.cert.PolicyNode.getChildren.

Returns an iterator over the children of this node.
public int
getDepth()

Implements java.security.cert.PolicyNode.getDepth.

Returns the depth of this node in the valid policy tree.
public Set<E>
getExpectedPolicies()

Implements java.security.cert.PolicyNode.getExpectedPolicies.

Returns the set of expected policies that would satisfy this node's valid policy in the next certificate to be processed.
public PolicyNode
getParent()

Implements java.security.cert.PolicyNode.getParent.

Returns the parent of this node, or null if this is the root node.
public Set<E>
getPolicyQualifiers()

Implements java.security.cert.PolicyNode.getPolicyQualifiers.

Returns the set of policy qualifiers associated with the valid policy represented by this node.
public String
getValidPolicy()

Implements java.security.cert.PolicyNode.getValidPolicy.

Returns the valid policy represented by this node.
public boolean
public boolean
isCritical()

Implements java.security.cert.PolicyNode.isCritical.

Returns the criticality indicator of the certificate policy extension in the most recently processed certificate.
public void
public void
setCritical(boolean _critical)

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public String
toString(String _indent)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

childrenback to summary
protected List<E> children
criticalback to summary
protected boolean critical
depthback to summary
protected int depth
expectedPoliciesback to summary
protected Set<E> expectedPolicies
parentback to summary
protected PolicyNode parent
policyQualifiersback to summary
protected Set<E> policyQualifiers
validPolicyback to summary
protected String validPolicy

Constructor Detail

PKIXPolicyNodeback to summary
public PKIXPolicyNode(List<E> _children, int _depth, Set<E> _expectedPolicies, PolicyNode _parent, Set<E> _policyQualifiers, String _validPolicy, boolean _critical)

Method Detail

addChildback to summary
public void addChild(PKIXPolicyNode _child)
getChildrenback to summary
public Iterator<E> getChildren()

Implements java.security.cert.PolicyNode.getChildren.

Doc from java.security.cert.PolicyNode.getChildren.

Returns an iterator over the children of this node. Any attempts to modify the children of this node through the Iterator's remove method must throw an UnsupportedOperationException.

Returns:Iterator<E>

an iterator over the children of this node

getDepthback to summary
public int getDepth()

Implements java.security.cert.PolicyNode.getDepth.

Doc from java.security.cert.PolicyNode.getDepth.

Returns the depth of this node in the valid policy tree.

Returns:int

the depth of this node (0 for the root node, 1 for its children, and so on)

getExpectedPoliciesback to summary
public Set<E> getExpectedPolicies()

Implements java.security.cert.PolicyNode.getExpectedPolicies.

Doc from java.security.cert.PolicyNode.getExpectedPolicies.

Returns the set of expected policies that would satisfy this node's valid policy in the next certificate to be processed.

Returns:Set<E>

an immutable Set of expected policy String OIDs. For the root node, this method always returns a Set with one element, the special anyPolicy OID: "2.5.29.32.0".

getParentback to summary
public PolicyNode getParent()

Implements java.security.cert.PolicyNode.getParent.

Doc from java.security.cert.PolicyNode.getParent.

Returns the parent of this node, or null if this is the root node.

Returns:PolicyNode

the parent of this node, or null if this is the root node

getPolicyQualifiersback to summary
public Set<E> getPolicyQualifiers()

Implements java.security.cert.PolicyNode.getPolicyQualifiers.

Doc from java.security.cert.PolicyNode.getPolicyQualifiers.

Returns the set of policy qualifiers associated with the valid policy represented by this node.

Returns:Set<E>

an immutable Set of PolicyQualifierInfos. For the root node, this is always an empty Set.

getValidPolicyback to summary
public String getValidPolicy()

Implements java.security.cert.PolicyNode.getValidPolicy.

Doc from java.security.cert.PolicyNode.getValidPolicy.

Returns the valid policy represented by this node.

Returns:String

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".

hasChildrenback to summary
public boolean hasChildren()
isCriticalback to summary
public boolean isCritical()

Implements java.security.cert.PolicyNode.isCritical.

Doc from java.security.cert.PolicyNode.isCritical.

Returns the criticality indicator of the certificate policy extension in the most recently processed certificate.

Returns:boolean

true if extension marked critical, false otherwise. For the root node, false is always returned.

removeChildback to summary
public void removeChild(PKIXPolicyNode _child)
setCriticalback to summary
public void setCritical(boolean _critical)
setParentback to summary
public void setParent(PKIXPolicyNode _parent)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

toStringback to summary
public String toString(String _indent)