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
All Methods Instance Methods Concrete Methods 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)voidsetExpectedPolicies(Set expectedPolicies)voidsetParent(PKIXPolicyNode _parent)StringtoString()Returns a string containing a concise, human-readable description of this object.StringtoString(String _indent)
-
-
-
Field Detail
-
children
protected List children
-
depth
protected int depth
-
expectedPolicies
protected Set expectedPolicies
-
parent
protected PolicyNode parent
-
policyQualifiers
protected Set policyQualifiers
-
validPolicy
protected String validPolicy
-
critical
protected boolean critical
-
-
Constructor Detail
-
PKIXPolicyNode
public PKIXPolicyNode(List _children, int _depth, Set _expectedPolicies, PolicyNode _parent, Set _policyQualifiers, String _validPolicy, boolean _critical)
-
-
Method Detail
-
addChild
public void addChild(PKIXPolicyNode _child)
-
getChildren
public Iterator 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
public Set 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
public PolicyNode getParent()
Description copied from interface:PolicyNodeReturns the parent policy node.- Specified by:
getParentin interfacePolicyNode- Returns:
- the parent policy node.
-
getPolicyQualifiers
public Set 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
public String 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
public void removeChild(PKIXPolicyNode _child)
-
setCritical
public void setCritical(boolean _critical)
-
setParent
public void setParent(PKIXPolicyNode _parent)
-
toString
public String 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.
-
clone
public Object 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
public PKIXPolicyNode copy()
-
setExpectedPolicies
public void setExpectedPolicies(Set expectedPolicies)
-
-