Bouncy Castle Cryptography 1.46

org.bouncycastle.asn1.cmp
Class CMPCertificate

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

public class CMPCertificate
extends ASN1Encodable
implements ASN1Choice


Field Summary
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
CMPCertificate(AttributeCertificate x509v2AttrCert)
          Note: the addition of attribute certificates is a BC extension.
CMPCertificate(X509CertificateStructure x509v3PKCert)
           
 
Method Summary
static CMPCertificate getInstance(java.lang.Object o)
           
 AttributeCertificate getX509v2AttrCert()
           
 X509CertificateStructure getX509v3PKCert()
           
 boolean isX509v3PKCert()
           
 DERObject toASN1Object()
           CMPCertificate ::= CHOICE { x509v3PKCert Certificate x509v2AttrCert [1] AttributeCertificate }
 
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
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(X509CertificateStructure x509v3PKCert)
Method Detail

getInstance

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

isX509v3PKCert

public boolean isX509v3PKCert()

getX509v3PKCert

public X509CertificateStructure getX509v3PKCert()

getX509v2AttrCert

public AttributeCertificate getX509v2AttrCert()

toASN1Object

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

Specified by:
toASN1Object in class ASN1Encodable
Returns:
a basic ASN.1 object representation.

Bouncy Castle Cryptography 1.46