Bouncy Castle Cryptography Library 1.49

org.bouncycastle.asn1.cmp
Class CMPCertificate

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Object
      extended by org.bouncycastle.asn1.cmp.CMPCertificate
All Implemented Interfaces:
ASN1Choice, ASN1Encodable

public class CMPCertificate
extends ASN1Object
implements ASN1Choice


Constructor Summary
CMPCertificate(AttributeCertificate x509v2AttrCert)
          Note: the addition of attribute certificates is a BC extension.
CMPCertificate(Certificate x509v3PKCert)
           
 
Method Summary
static CMPCertificate getInstance(java.lang.Object o)
           
 AttributeCertificate getX509v2AttrCert()
           
 Certificate getX509v3PKCert()
           
 boolean isX509v3PKCert()
           
 ASN1Primitive toASN1Primitive()
           CMPCertificate ::= CHOICE { x509v3PKCert Certificate x509v2AttrCert [1] AttributeCertificate } Note: the addition of attribute certificates is a BC extension.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMPCertificate

public CMPCertificate(AttributeCertificate x509v2AttrCert)
Note: the addition of attribute certificates is a BC extension.


CMPCertificate

public CMPCertificate(Certificate x509v3PKCert)
Method Detail

getInstance

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

isX509v3PKCert

public boolean isX509v3PKCert()

getX509v3PKCert

public Certificate getX509v3PKCert()

getX509v2AttrCert

public AttributeCertificate getX509v2AttrCert()

toASN1Primitive

public ASN1Primitive toASN1Primitive()
 CMPCertificate ::= CHOICE {
            x509v3PKCert        Certificate
            x509v2AttrCert      [1] AttributeCertificate
  }
 
Note: the addition of attribute certificates is a BC extension.

Specified by:
toASN1Primitive in interface ASN1Encodable
Specified by:
toASN1Primitive in class ASN1Object
Returns:
a basic ASN.1 object representation.

Bouncy Castle Cryptography Library 1.49