1 package org.bouncycastle.asn1.x509;
3 import java.util.Enumeration;
5 import org.bouncycastle.asn1.*;
7 public class GeneralNames
8 implements DEREncodable
11 boolean isInsideImplicit = false;
13 public static GeneralNames getInstance(
16 if (obj == null || obj instanceof GeneralNames)
18 return (GeneralNames)obj;
21 if (obj instanceof ASN1Sequence)
23 return new GeneralNames((ASN1Sequence)obj);
26 throw new IllegalArgumentException("illegal object in getInstance: " + obj.getClass().getName());
29 public static GeneralNames getInstance(
33 return getInstance(ASN1Sequence.getInstance(obj, explicit));
43 * this is a hack! But it will have to do until the ambiguity rules
44 * get sorted out for implicit/explicit tagging...
47 public void markInsideImplicit(
48 boolean isInsideImplicit)
50 this.isInsideImplicit = isInsideImplicit;
55 * GeneralNames ::= SEQUENCE SIZE {1..MAX} OF GeneralName
58 public DERObject getDERObject()