com.ibm.security12.sun.security.x509
Class GeneralSubtree

java.lang.Object
  |
  +--com.ibm.security12.sun.security.x509.GeneralSubtree

public class GeneralSubtree
extends Object

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.7
Author:
Amit Kapoor, Hemma Prafullchandra

Constructor Summary
GeneralSubtree(DerValue val)
          Create the object from its DER encoded form.
GeneralSubtree(GeneralName name, int min, int max)
          The default constructor for the class.
 
Method Summary
 void encode(DerOutputStream out)
          Encode the GeneralSubtree.
 String toString()
          Return a printable string of the GeneralSubtree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneralSubtree

public GeneralSubtree(GeneralName name,
                      int min,
                      int max)
The default constructor for the class.

GeneralSubtree

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

toString

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

encode

public void encode(DerOutputStream out)
            throws IOException
Encode the GeneralSubtree.