FileDocCategorySizeDatePackage
NameConstraints.javaAPI DocAzureus 3.0.3.41730Tue Jun 08 05:12:56 BST 2004org.bouncycastle.asn1.x509

NameConstraints

public class NameConstraints extends Object implements org.bouncycastle.asn1.DEREncodable

Fields Summary
org.bouncycastle.asn1.ASN1Sequence
permitted
org.bouncycastle.asn1.ASN1Sequence
excluded
Constructors Summary
public NameConstraints(org.bouncycastle.asn1.ASN1Sequence seq)

        Enumeration e = seq.getObjects();
        while (e.hasMoreElements())
        {
            ASN1TaggedObject    o = (ASN1TaggedObject)e.nextElement();
            switch (o.getTagNo())
            {
            case 0:
                permitted = ASN1Sequence.getInstance(o, false);
                break;
            case 1:
                excluded = ASN1Sequence.getInstance(o, false);
                break;
            }
        }
    
Methods Summary
public org.bouncycastle.asn1.DERObjectgetDERObject()

        ASN1EncodableVector   v = new ASN1EncodableVector();

        if (permitted != null)
        {
            v.add(new DERTaggedObject(false, 0, permitted));
        }

        if (excluded != null)
        {
            v.add(new DERTaggedObject(false, 1, excluded));
        }

        return new DERSequence(v);
    
public org.bouncycastle.asn1.ASN1SequencegetExcludedSubtrees()

        return excluded;
    
public org.bouncycastle.asn1.ASN1SequencegetPermittedSubtrees()

        return permitted;