Package org.bouncycastle.jce.provider
Class PKIXPolicyNode
java.lang.Object
org.bouncycastle.jce.provider.PKIXPolicyNode
- All Implemented Interfaces:
PolicyNode
public class PKIXPolicyNode extends Object implements PolicyNode
-
Field Summary
Fields Modifier and Type Field Description protected Listchildrenprotected booleancriticalprotected intdepthprotected SetexpectedPoliciesprotected PolicyNodeparentprotected SetpolicyQualifiersprotected StringvalidPolicy -
Constructor Summary
Constructors Constructor Description PKIXPolicyNode(List _children, int _depth, Set _expectedPolicies, PolicyNode _parent, Set _policyQualifiers, String _validPolicy, boolean _critical) -
Method Summary
Modifier and Type Method Description voidaddChild(PKIXPolicyNode _child)Objectclone()Creates and returns a copy of thisObject.PKIXPolicyNodecopy()IteratorgetChildren()Returns the list of children of this node as anIterator.intgetDepth()Returns the depth of this node in the policy tree.SetgetExpectedPolicies()Returns the expected policies for the next certificate to be valid.PolicyNodegetParent()Returns the parent policy node.SetgetPolicyQualifiers()Returns the policy qualifiers associated with the policy of this node.StringgetValidPolicy()Returns the valid policy of this node.booleanhasChildren()booleanisCritical()Returns whether the certificate policy extension of the most recently processed certificate is marked as critical.voidremoveChild(PKIXPolicyNode _child)voidsetCritical(boolean _critical)voidsetParent(PKIXPolicyNode _parent)StringtoString()Returns a string containing a concise, human-readable description of this object.StringtoString(String _indent)
-
Field Details
-
children
-
depth
protected int depth -
expectedPolicies
-
parent
-
policyQualifiers
-
validPolicy
-
critical
protected boolean critical
-
-
Constructor Details
-
PKIXPolicyNode
public PKIXPolicyNode(List _children, int _depth, Set _expectedPolicies, PolicyNode _parent, Set _policyQualifiers, String _validPolicy, boolean _critical)
-
-
Method Details
-
addChild
-
getChildren
Description copied from interface:PolicyNodeReturns the list of children of this node as anIterator.- Specified by:
getChildrenin interfacePolicyNode- Returns:
- the list of children of this node as an
Iterator.
-
getDepth
public int getDepth()Description copied from interface:PolicyNodeReturns the depth of this node in the policy tree.the depth is zero based.
- Specified by:
getDepthin interfacePolicyNode- Returns:
- the depth of this node in the policy tree.
-
getExpectedPolicies
Description copied from interface:PolicyNodeReturns the expected policies for the next certificate to be valid.- Specified by:
getExpectedPoliciesin interfacePolicyNode- Returns:
- the expected policies.
-
getParent
Description copied from interface:PolicyNodeReturns the parent policy node.- Specified by:
getParentin interfacePolicyNode- Returns:
- the parent policy node.
-
getPolicyQualifiers
Description copied from interface:PolicyNodeReturns the policy qualifiers associated with the policy of this node.- Specified by:
getPolicyQualifiersin interfacePolicyNode- Returns:
- the policy qualifiers associated with the policy of this node.
-
getValidPolicy
Description copied from interface:PolicyNodeReturns the valid policy of this node.- Specified by:
getValidPolicyin interfacePolicyNode- Returns:
- the valid policy of this node.
-
hasChildren
public boolean hasChildren() -
isCritical
public boolean isCritical()Description copied from interface:PolicyNodeReturns whether the certificate policy extension of the most recently processed certificate is marked as critical.- Specified by:
isCriticalin interfacePolicyNode- Returns:
trueif the extension is marked as critical, otherwisefalse.
-
removeChild
-
setCritical
public void setCritical(boolean _critical) -
setParent
-
toString
Description copied from class:ObjectReturns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toStringmethod if you intend implementing your owntoStringmethod. -
toString
-
clone
Description copied from class:ObjectCreates and returns a copy of thisObject. The default implementation returns a so-called "shallow" copy: It creates a new instance of the same class and then copies the field values (including object references) from this instance to the new instance. A "deep" copy, in contrast, would also recursively clone nested objects. A subclass that needs to implement this kind of cloning should callsuper.clone()to create the new instance and then create deep copies of the nested, mutable objects. -
copy
-