Top Fields Constructors Methods
org.bouncycastle.asn1.cmp

public Class CMPCertificate

extends ASN1Object
implements ASN1Choice
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1Choice
Known Direct Subclasses
org.bouncycastle.asn1.cmp.OOBCert, org.bouncycastle.asn1.cmp.CertAnnContent
Imports
java.io.IOException, org.bouncycastle.asn1.ASN1Choice, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .BERTags, .DERTaggedObject, org.bouncycastle.asn1.x509.AttributeCertificate, .Certificate

Field Summary

Modifier and TypeField and Description
private ASN1Object
private int
private Certificate

Constructor Summary

AccessConstructor and Description
public
CMPCertificate(AttributeCertificate x509v2AttrCert)

Deprecated use (type, otherCert) constructor

Note

the addition of attribute certificates is a BC extension.

public
CMPCertificate(int
the type of the certificate (used as a tag value).
type
,
ASN1Object
the object representing the certificate
otherCert
)

Note

the addition of other certificates is a BC extension.

public

Method Summary

Modifier and TypeMethod and Description
public static CMPCertificate
getInstance(ASN1TaggedObject ato, boolean isExplicit)

public static CMPCertificate
public ASN1Object
public int
public AttributeCertificate

Returns:

an AttributeCertificate
getX509v2AttrCert
()

Deprecated use getOtherCert and getOtherTag to make sure message is really what it should be.
Return an AttributeCertificate interpretation of otherCert.
public Certificate
public boolean
public ASN1Primitive

Returns:

a basic ASN.1 object representation.
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

CMPCertificate ::= CHOICE {
           x509v3PKCert    Certificate
           otherCert      [tag] EXPLICIT ANY DEFINED BY tag
 }
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

otherCertback to summary
private ASN1Object otherCert
otherTagValueback to summary
private int otherTagValue
x509v3PKCertback to summary
private Certificate x509v3PKCert

Constructor Detail

CMPCertificateback to summary
public CMPCertificate(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.

CMPCertificateback to summary
public CMPCertificate(int type, ASN1Object otherCert)

Note

the addition of other certificates is a BC extension. If you use this constructor they will be added with an explicit tag value of type.

Parameters
type:int

the type of the certificate (used as a tag value).

otherCert:ASN1Object

the object representing the certificate

CMPCertificateback to summary
public CMPCertificate(Certificate x509v3PKCert)

Method Detail

getInstanceback to summary
public static CMPCertificate getInstance(ASN1TaggedObject ato, boolean isExplicit)
getInstanceback to summary
public static CMPCertificate getInstance(Object o)
getOtherCertback to summary
public ASN1Object getOtherCert()
getOtherCertTagback to summary
public int getOtherCertTag()
getX509v2AttrCertback to summary
public AttributeCertificate getX509v2AttrCert()

Deprecated

use getOtherCert and getOtherTag to make sure message is really what it should be.

Return an AttributeCertificate interpretation of otherCert.

Returns:AttributeCertificate

an AttributeCertificate

getX509v3PKCertback to summary
public Certificate getX509v3PKCert()
isX509v3PKCertback to summary
public boolean isX509v3PKCert()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.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.
Returns:ASN1Primitive

a basic ASN.1 object representation.