CertAnnContent (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.asn1.cmp

## Class CertAnnContent

- java.lang.Object
- - org.bouncycastle.asn1.ASN1Object
  - - org.bouncycastle.asn1.cmp.CMPCertificate
    - - org.bouncycastle.asn1.cmp.CertAnnContent

- All Implemented Interfaces:
    ASN1Choice, ASN1Encodable, Encodable

      public class CertAnnContent
      extends CMPCertificate

  CertAnnContent ::= CMPCertificate

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CertAnnContent(AttributeCertificate x509v2AttrCert)` Deprecated. use (type, otherCert) constructor
    `CertAnnContent(Certificate x509v3PKCert)`
    `CertAnnContent(int type, ASN1Object otherCert)`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static CertAnnContent` | `getInstance(ASN1TaggedObject ato, boolean isExplicit)`
    `static CertAnnContent` | `getInstance(java.lang.Object o)`

    - ### Methods inherited from class org.bouncycastle.asn1.cmp.CMPCertificate

      `getOtherCert, getOtherCertTag, getX509v2AttrCert, getX509v3PKCert, isX509v3PKCert, toASN1Primitive`

    - ### Methods inherited from class org.bouncycastle.asn1.ASN1Object

      `encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CertAnnContent

          public CertAnnContent(AttributeCertificate x509v2AttrCert)

      Deprecated. use (type, otherCert) constructor
      Note: the addition of attribute certificates is a BC extension. If you use this constructor they will be added with a tag value of 1.

    - #### CertAnnContent

          public CertAnnContent(int type,
                                ASN1Object otherCert)

    - #### CertAnnContent

          public CertAnnContent(Certificate x509v3PKCert)

  - ### Method Detail

    - #### getInstance

          public static CertAnnContent getInstance(ASN1TaggedObject ato,
                                                   boolean isExplicit)

    - #### getInstance

          public static CertAnnContent getInstance(java.lang.Object o)