public class GeneralSubtree
extends java.lang.Object
implements java.io.Serializable
GeneralSubtree ::= SEQUENCE {
base GeneralName,
minimum [0] BaseDistance DEFAULT 0,
maximum [1] BaseDistance OPTIONAL
}
BaseDistance ::= INTEGER (0..MAX)
| Constructor and Description |
|---|
GeneralSubtree(DerValue val)
Create the object from its DER encoded form.
|
GeneralSubtree(GeneralName name,
int min,
int max)
The default constructor for the class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(DerOutputStream out)
Encode the GeneralSubtree.
|
GeneralName |
getGeneralName() |
int |
getMaxValue() |
int |
getMinValue() |
java.lang.String |
toPrint(int indent) |
java.lang.String |
toString()
Return a printable string of the GeneralSubtree.
|
public GeneralSubtree(GeneralName name, int min, int max)
name - the GeneralNamemin - the minimum BaseDistancemax - the maximum BaseDistancepublic GeneralSubtree(DerValue val) throws java.io.IOException
val - the DER encoded from of the same.java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toPrint(int indent)
public void encode(DerOutputStream out) throws java.io.IOException
out - the DerOutputStream to encode this object to.java.io.IOExceptionpublic GeneralName getGeneralName()
public int getMaxValue()
public int getMinValue()