Top Fields Constructors Methods
org.bouncycastle.pkix.jcajce

public Class PKIXPolicyNode

extends Object
implements PolicyNode
Class Inheritance
All Implemented Interfaces
java.security.cert.PolicyNode
Imports
java.security.cert.PolicyNode, java.util.ArrayList, .HashSet, .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 Object
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.
public PKIXPolicyNode
copy()

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
setExpectedPolicies(Set<E> expectedPolicies)

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:
equalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

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)
cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:Object

a clone of this instance.

copyback to summary
public PKIXPolicyNode copy()
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)
setExpectedPoliciesback to summary
public void setExpectedPolicies(Set<E> expectedPolicies)
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)