Class PKIXPolicyNode

    • Field Detail

      • children

        protected List children
      • depth

        protected int depth
      • expectedPolicies

        protected Set expectedPolicies
      • 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

      • 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.
      • setCritical

        public void setCritical​(boolean _critical)
      • 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.
      • 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.
      • setExpectedPolicies

        public void setExpectedPolicies​(Set expectedPolicies)