Class GeneralSubtree

java.lang.Object
org.mozilla.jss.netscape.security.x509.GeneralSubtree
All Implemented Interfaces:
Serializable

public class GeneralSubtree extends Object implements 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
See Also:
  • Field Details

  • Constructor Details

    • 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 IOException
      Create the object from its DER encoded form.
      Parameters:
      val - the DER encoded from of the same.
      Throws:
      IOException
  • Method Details

    • toString

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

      public String toPrint(int indent)
    • encode

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

      public GeneralName getGeneralName()
    • getMaxValue

      public int getMaxValue()
    • getMinValue

      public int getMinValue()