public class

GeneralSubtree

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.x509.GeneralSubtree

Class Overview

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

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
GeneralSubtree(ASN1Sequence seq)
GeneralSubtree(GeneralName base, BigInteger minimum, BigInteger maximum)
Constructor from a given details.
GeneralSubtree(GeneralName base)
Public Methods
GeneralName getBase()
static GeneralSubtree getInstance(ASN1TaggedObject o, boolean explicit)
static GeneralSubtree getInstance(Object obj)
BigInteger getMaximum()
BigInteger getMinimum()
DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public GeneralSubtree (ASN1Sequence seq)

public GeneralSubtree (GeneralName base, BigInteger minimum, BigInteger maximum)

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 is null, maximum is absent.

Parameters
base A restriction.
minimum Minimum
maximum Maximum

public GeneralSubtree (GeneralName base)

Public Methods

public GeneralName getBase ()

public static GeneralSubtree getInstance (ASN1TaggedObject o, boolean explicit)

public static GeneralSubtree getInstance (Object obj)

public BigInteger getMaximum ()

public BigInteger getMinimum ()

public DERObject toASN1Object ()

Produce an object suitable for an ASN1OutputStream. Returns:

       GeneralSubtree ::= SEQUENCE 
       {
         base                    GeneralName,
         minimum         [0]     BaseDistance DEFAULT 0,
         maximum         [1]     BaseDistance OPTIONAL 
       }
 

Returns
  • a DERObject