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)
- Version:
- 1.5
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private static final int
private int
private GeneralName
private PrettyPrintFormat
private static final long
private static final byte
private static final byte
-
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.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
TAG_MIN
private static final byte TAG_MIN- See Also:
-
TAG_MAX
private static final byte TAG_MAX- See Also:
-
MIN_DEFAULT
private static final int MIN_DEFAULT- See Also:
-
name
-
minimum
private int minimum -
maximum
private int maximum -
pp
-
-
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()
-