public class GeneralSubtree extends ASN1Object
GeneralSubtree ::= SEQUENCE { base GeneralName, minimum [0] BaseDistance DEFAULT 0, maximum [1] BaseDistance OPTIONAL }
NameConstraints
Modifier and Type | Field and Description |
---|---|
private GeneralName |
base |
private ASN1Integer |
maximum |
private ASN1Integer |
minimum |
private static BigInteger |
ZERO |
Modifier | Constructor and Description |
---|---|
private |
GeneralSubtree(ASN1Sequence seq) |
|
GeneralSubtree(GeneralName base) |
|
GeneralSubtree(GeneralName base,
BigInteger minimum,
BigInteger maximum)
Constructor from a given details.
|
Modifier and Type | Method and Description |
---|---|
GeneralName |
getBase() |
static GeneralSubtree |
getInstance(ASN1TaggedObject o,
boolean explicit) |
static GeneralSubtree |
getInstance(Object obj) |
BigInteger |
getMaximum() |
BigInteger |
getMinimum() |
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
private static final BigInteger ZERO
private GeneralName base
private ASN1Integer minimum
private ASN1Integer maximum
private GeneralSubtree(ASN1Sequence seq)
public GeneralSubtree(GeneralName base, BigInteger minimum, BigInteger maximum)
If minimum is null
, zero is assumed, if
maximum is null
, maximum is absent.
base
- A restriction.minimum
- Minimummaximum
- Maximumpublic GeneralSubtree(GeneralName base)
public static GeneralSubtree getInstance(ASN1TaggedObject o, boolean explicit)
public static GeneralSubtree getInstance(Object obj)
public GeneralName getBase()
public BigInteger getMinimum()
public BigInteger getMaximum()
public ASN1Primitive toASN1Primitive()
GeneralSubtree ::= SEQUENCE { base GeneralName, minimum [0] BaseDistance DEFAULT 0, maximum [1] BaseDistance OPTIONAL }
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object