org.bouncycastle.asn1.cmp

Class CertOrEncCert

Implemented Interfaces:
ASN1Choice, DEREncodable

public class CertOrEncCert
extends ASN1Encodable
implements ASN1Choice

Field Summary

Fields inherited from class org.bouncycastle.asn1.ASN1Encodable

BER, DER

Method Summary

CMPCertificate
getCertificate()
EncryptedValue
getEncryptedCert()
static CertOrEncCert
getInstance(Object o)
DERObject
toASN1Object()
 CertOrEncCert ::= CHOICE {
                      certificate     [0] CMPCertificate,
                      encryptedCert   [1] EncryptedValue
           }
 

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode, toASN1Object

Method Details

getCertificate

public CMPCertificate getCertificate()

getEncryptedCert

public EncryptedValue getEncryptedCert()

getInstance

public static CertOrEncCert getInstance(Object o)

toASN1Object

public DERObject toASN1Object()
 CertOrEncCert ::= CHOICE {
                      certificate     [0] CMPCertificate,
                      encryptedCert   [1] EncryptedValue
           }
 
Overrides:
toASN1Object in interface ASN1Encodable
Returns:
a basic ASN.1 object representation.