Class GeneralSubtree
- java.lang.Object
-
- org.mozilla.jss.netscape.security.x509.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)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
GeneralSubtree
public GeneralSubtree(GeneralName name, int min, int max)
The default constructor for the class.- Parameters:
name
- the GeneralNamemin
- the minimum BaseDistancemax
- 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 classjava.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
-
getGeneralName
public GeneralName getGeneralName()
-
getMaxValue
public int getMaxValue()
-
getMinValue
public int getMinValue()
-
-