Class GeneralSubtree

  • All Implemented Interfaces:
    java.io.Serializable

    public class GeneralSubtree
    extends java.lang.Object
    implements java.io.Serializable
    Represent the GeneralSubtree ASN.1 object, whose syntax is:
     GeneralSubtree ::= SEQUENCE {
        base             GeneralName,
        minimum  [0]     BaseDistance DEFAULT 0,
        maximum  [1]     BaseDistance OPTIONAL
     }
     BaseDistance ::= INTEGER (0..MAX)
     
    Version:
    1.5
    Author:
    Amit Kapoor, Hemma Prafullchandra
    See Also:
    Serialized Form
    • Constructor Detail

      • GeneralSubtree

        public GeneralSubtree​(GeneralName name,
                              int min,
                              int max)
        The default constructor for the class.
        Parameters:
        name - the GeneralName
        min - the minimum BaseDistance
        max - the maximum BaseDistance
      • GeneralSubtree

        public GeneralSubtree​(DerValue val)
                       throws java.io.IOException
        Create the object from its DER encoded form.
        Parameters:
        val - the DER encoded from of the same.
        Throws:
        java.io.IOException
    • Method Detail

      • toString

        public java.lang.String toString()
        Return a printable string of the GeneralSubtree.
        Overrides:
        toString in class java.lang.Object
      • toPrint

        public java.lang.String toPrint​(int indent)
      • encode

        public void encode​(DerOutputStream out)
                    throws java.io.IOException
        Encode the GeneralSubtree.
        Parameters:
        out - the DerOutputStream to encode this object to.
        Throws:
        java.io.IOException
      • getMaxValue

        public int getMaxValue()
      • getMinValue

        public int getMinValue()