Enumeration e = seq.getObjects(); while (e.hasMoreElements()) { ASN1TaggedObject o = ASN1TaggedObject.getInstance(e.nextElement()); switch (o.getTagNo()) { case 0: permitted = ASN1Sequence.getInstance(o, false); break; case 1: excluded = ASN1Sequence.getInstance(o, false); break; } }
Constructor from a given details. permitted and excluded are Vectors of GeneralSubtree objects.parampermitted Permitted subtreesparamexcluded Excludes subtrees if (permitted != null) { this.permitted = createSequence(permitted); } if (excluded != null) { this.excluded = createSequence(excluded); }
permitted and excluded are Vectors of GeneralSubtree objects.
if (permitted != null) { this.permitted = createSequence(permitted); } if (excluded != null) { this.excluded = createSequence(excluded); }
ASN1EncodableVector vec = new ASN1EncodableVector(); Enumeration e = subtree.elements(); while (e.hasMoreElements()) { vec.add((GeneralSubtree)e.nextElement()); } return new DERSequence(vec);
return excluded;
return permitted;
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);