public class GeneralSubtree
extends java.lang.Object
implements com.tencent.kona.sun.security.util.DerEncoder
GeneralSubtree ::= SEQUENCE {
base GeneralName,
minimum [0] BaseDistance DEFAULT 0,
maximum [1] BaseDistance OPTIONAL
}
BaseDistance ::= INTEGER (0..MAX)
| Constructor and Description |
|---|
GeneralSubtree(com.tencent.kona.sun.security.util.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(com.tencent.kona.sun.security.util.DerOutputStream out)
Encode the GeneralSubtree.
|
boolean |
equals(java.lang.Object other)
Compare this GeneralSubtree with another
|
int |
getMaximum()
Return the maximum BaseDistance.
|
int |
getMinimum()
Return the minimum BaseDistance.
|
GeneralName |
getName()
Return the GeneralName.
|
int |
hashCode()
Returns the hash code for this GeneralSubtree.
|
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(com.tencent.kona.sun.security.util.DerValue val)
throws java.io.IOException
val - the DER encoded from of the same.java.io.IOExceptionpublic GeneralName getName()
public int getMinimum()
public int getMaximum()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - GeneralSubtree to compare to thispublic int hashCode()
hashCode in class java.lang.Objectpublic void encode(com.tencent.kona.sun.security.util.DerOutputStream out)
encode in interface com.tencent.kona.sun.security.util.DerEncoderout - the DerOutputStream to encode this object to.