Class GeneralSubtree
java.lang.Object
org.mozilla.jss.netscape.security.x509.GeneralSubtree
- All Implemented Interfaces:
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)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGeneralSubtree
(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
Modifier and TypeMethodDescriptionvoid
encode
(DerOutputStream out) Encode the GeneralSubtree.int
int
toPrint
(int indent) toString()
Return a printable string of the GeneralSubtree.
-
Constructor Details
-
GeneralSubtree
The default constructor for the class.- Parameters:
name
- the GeneralNamemin
- the minimum BaseDistancemax
- the maximum BaseDistance
-
GeneralSubtree
Create the object from its DER encoded form.- Parameters:
val
- the DER encoded from of the same.- Throws:
IOException
-
-
Method Details
-
toString
Return a printable string of the GeneralSubtree. -
toPrint
-
encode
Encode the GeneralSubtree.- Parameters:
out
- the DerOutputStream to encode this object to.- Throws:
IOException
-
getGeneralName
-
getMaxValue
public int getMaxValue() -
getMinValue
public int getMinValue()
-