1 package org.bouncycastle.asn1.x509;
3 import org.bouncycastle.asn1.*;
5 public class GeneralNames
6 implements DEREncodable
9 boolean isInsideImplicit = false;
11 public static GeneralNames getInstance(
14 if (obj == null || obj instanceof GeneralNames)
16 return (GeneralNames)obj;
19 if (obj instanceof ASN1Sequence)
21 return new GeneralNames((ASN1Sequence)obj);
24 throw new IllegalArgumentException("illegal object in getInstance: " + obj.getClass().getName());
27 public static GeneralNames getInstance(
31 return getInstance(ASN1Sequence.getInstance(obj, explicit));
41 * this is a hack! But it will have to do until the ambiguity rules
42 * get sorted out for implicit/explicit tagging...
45 public void markInsideImplicit(
46 boolean isInsideImplicit)
48 this.isInsideImplicit = isInsideImplicit;
53 * GeneralNames ::= SEQUENCE SIZE {1..MAX} OF GeneralName
56 public DERObject getDERObject()