public class CMPCertificate
extends org.bouncycastle.asn1.ASN1Object
implements org.bouncycastle.asn1.ASN1Choice
| Constructor and Description |
|---|
CMPCertificate(org.bouncycastle.asn1.x509.AttributeCertificate x509v2AttrCert)
Deprecated.
use (type. otherCert) constructor
|
CMPCertificate(org.bouncycastle.asn1.x509.Certificate x509v3PKCert) |
CMPCertificate(int type,
org.bouncycastle.asn1.ASN1Object otherCert)
Note: the addition of other certificates is a BC extension.
|
| Modifier and Type | Method and Description |
|---|---|
static CMPCertificate |
getInstance(java.lang.Object o) |
org.bouncycastle.asn1.ASN1Object |
getOtherCert() |
int |
getOtherCertTag() |
org.bouncycastle.asn1.x509.AttributeCertificate |
getX509v2AttrCert()
Deprecated.
use getOtherCert and getOtherTag to make sure message is really what it should be.
|
org.bouncycastle.asn1.x509.Certificate |
getX509v3PKCert() |
boolean |
isX509v3PKCert() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive()
CMPCertificate ::= CHOICE {
x509v3PKCert Certificate
otherCert [tag] EXPLICIT ANY DEFINED BY tag
}
|
public CMPCertificate(org.bouncycastle.asn1.x509.AttributeCertificate x509v2AttrCert)
public CMPCertificate(int type,
org.bouncycastle.asn1.ASN1Object otherCert)
type - the type of the certificate (used as a tag value).otherCert - the object representing the certificatepublic CMPCertificate(org.bouncycastle.asn1.x509.Certificate x509v3PKCert)
public static CMPCertificate getInstance(java.lang.Object o)
public boolean isX509v3PKCert()
public org.bouncycastle.asn1.x509.Certificate getX509v3PKCert()
public org.bouncycastle.asn1.x509.AttributeCertificate getX509v2AttrCert()
public int getOtherCertTag()
public org.bouncycastle.asn1.ASN1Object getOtherCert()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
CMPCertificate ::= CHOICE {
x509v3PKCert Certificate
otherCert [tag] EXPLICIT ANY DEFINED BY tag
}
Note: the addition of the explicit tagging is a BC extension. We apologise for the warped syntax, but hopefully you get the idea.toASN1Primitive in interface org.bouncycastle.asn1.ASN1EncodabletoASN1Primitive in class org.bouncycastle.asn1.ASN1Object