Class PKIXPolicyNode

java.lang.Object
org.bouncycastle.jce.provider.PKIXPolicyNode
All Implemented Interfaces:
PolicyNode

public class PKIXPolicyNode
extends Object
implements PolicyNode
  • Field Details

    • 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 Details

    • PKIXPolicyNode

      public PKIXPolicyNode​(List _children, int _depth, Set _expectedPolicies, PolicyNode _parent, Set _policyQualifiers, String _validPolicy, boolean _critical)
  • Method Details

    • addChild

      public void addChild​(PKIXPolicyNode _child)
    • getChildren

      public Iterator getChildren()
      Description copied from interface: PolicyNode
      Returns the list of children of this node as an Iterator.
      Specified by:
      getChildren in interface PolicyNode
      Returns:
      the list of children of this node as an Iterator.
    • getDepth

      public int getDepth()
      Description copied from interface: PolicyNode
      Returns the depth of this node in the policy tree.

      the depth is zero based.

      Specified by:
      getDepth in interface PolicyNode
      Returns:
      the depth of this node in the policy tree.
    • getExpectedPolicies

      public Set getExpectedPolicies()
      Description copied from interface: PolicyNode
      Returns the expected policies for the next certificate to be valid.
      Specified by:
      getExpectedPolicies in interface PolicyNode
      Returns:
      the expected policies.
    • getParent

      public PolicyNode getParent()
      Description copied from interface: PolicyNode
      Returns the parent policy node.
      Specified by:
      getParent in interface PolicyNode
      Returns:
      the parent policy node.
    • getPolicyQualifiers

      public Set getPolicyQualifiers()
      Description copied from interface: PolicyNode
      Returns the policy qualifiers associated with the policy of this node.
      Specified by:
      getPolicyQualifiers in interface PolicyNode
      Returns:
      the policy qualifiers associated with the policy of this node.
    • getValidPolicy

      public String getValidPolicy()
      Description copied from interface: PolicyNode
      Returns the valid policy of this node.
      Specified by:
      getValidPolicy in interface PolicyNode
      Returns:
      the valid policy of this node.
    • hasChildren

      public boolean hasChildren()
    • isCritical

      public boolean isCritical()
      Description copied from interface: PolicyNode
      Returns whether the certificate policy extension of the most recently processed certificate is marked as critical.
      Specified by:
      isCritical in interface PolicyNode
      Returns:
      true if the extension is marked as critical, otherwise false.
    • 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: Object
      Returns 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 toString method if you intend implementing your own toString method.

      Overrides:
      toString in class Object
      Returns:
      a printable representation of this object.
    • toString

      public String toString​(String _indent)
    • clone

      public Object clone()
      Description copied from class: Object
      Creates and returns a copy of this Object. 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 call super.clone() to create the new instance and then create deep copies of the nested, mutable objects.
      Overrides:
      clone in class Object
      Returns:
      a copy of this object.
    • copy

      public PKIXPolicyNode copy()