Class GeneralSubtree
java.lang.Object
org.gudy.bouncycastle.asn1.ASN1Encodable
org.gudy.bouncycastle.asn1.x509.GeneralSubtree
- All Implemented Interfaces:
DEREncodable
Class for containing a restriction object subtrees in NameConstraints. See
RFC 3280.
GeneralSubtree ::= SEQUENCE
{
base GeneralName,
minimum [0] BaseDistance DEFAULT 0,
maximum [1] BaseDistance OPTIONAL
}
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GeneralNameprivate DERIntegerprivate DERIntegerprivate static final BigIntegerFields inherited from class ASN1Encodable
BER, DER -
Constructor Summary
ConstructorsConstructorDescriptionGeneralSubtree(GeneralName base) GeneralSubtree(GeneralName base, BigInteger minimum, BigInteger maximum) Constructor from a given details. -
Method Summary
Modifier and TypeMethodDescriptiongetBase()static GeneralSubtreegetInstance(Object obj) static GeneralSubtreegetInstance(ASN1TaggedObject o, boolean explicit) Produce an object suitable for an ASN1OutputStream.Methods inherited from class ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
-
Field Details
-
ZERO
-
base
-
minimum
-
maximum
-
-
Constructor Details
-
GeneralSubtree
-
GeneralSubtree
Constructor from a given details. According RFC 3280, the minimum and maximum fields are not used with any name forms, thus minimum MUST be zero, and maximum MUST be absent.If minimum is
null, zero is assumed, if maximum isnull, maximum is absent.- Parameters:
base- A restriction.minimum- Minimummaximum- Maximum
-
GeneralSubtree
-
-
Method Details
-
getInstance
-
getInstance
-
getBase
-
getMinimum
-
getMaximum
-
toASN1Object
Produce an object suitable for an ASN1OutputStream. Returns:GeneralSubtree ::= SEQUENCE { base GeneralName, minimum [0] BaseDistance DEFAULT 0, maximum [1] BaseDistance OPTIONAL }- Specified by:
toASN1Objectin classASN1Encodable- Returns:
- a DERObject
-