AttCertIssuer.javaAPI DocAndroid 1.5 API2317Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.x509


public class AttCertIssuer extends org.bouncycastle.asn1.ASN1Encodable implements org.bouncycastle.asn1.ASN1Choice

Fields Summary
Constructors Summary
public AttCertIssuer(GeneralNames names)
Don't use this one if you are trying to be RFC compliant.

names our GeneralNames structure

        obj = names;
        choiceObj = obj.getDERObject();
public AttCertIssuer(V2Form v2Form)

        obj = v2Form;
        choiceObj = new DERTaggedObject(false, 0, obj);
Methods Summary
public static org.bouncycastle.asn1.x509.AttCertIssuergetInstance(java.lang.Object obj)

        if (obj instanceof AttCertIssuer)
            return (AttCertIssuer)obj;
        else if (obj instanceof V2Form)
            return new AttCertIssuer(V2Form.getInstance(obj));
        else if (obj instanceof GeneralNames)
            return new AttCertIssuer((GeneralNames)obj);
        else if (obj instanceof ASN1TaggedObject)
            return new AttCertIssuer(V2Form.getInstance((ASN1TaggedObject)obj, false));
        else if (obj instanceof ASN1Sequence)
            return new AttCertIssuer(GeneralNames.getInstance(obj));

        throw new IllegalArgumentException("unknown object in factory: " + obj.getClass());
public static org.bouncycastle.asn1.x509.AttCertIssuergetInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)

        return getInstance(obj.getObject()); // must be explictly tagged
public org.bouncycastle.asn1.ASN1EncodablegetIssuer()

        return obj;
public org.bouncycastle.asn1.DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.
AttCertIssuer ::= CHOICE {
v1Form GeneralNames, -- MUST NOT be used in this
-- profile
v2Form [0] V2Form -- v2 only

        return choiceObj;