public class CertificateResponse
extends java.lang.Object
Constructor and Description |
---|
CertificateResponse(org.bouncycastle.asn1.cmp.CertResponse certResponse) |
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.asn1.cmp.CMPCertificate |
getCertificate()
Return the CMPCertificate representing the plaintext certificate in the response.
|
org.bouncycastle.asn1.cmp.CMPCertificate |
getCertificate(Recipient recipient)
Return the CMPCertificate representing the plaintext certificate in the response.
|
CMSEnvelopedData |
getEncryptedCertificate()
Return a CMSEnvelopedData representing the encrypted certificate contained in the response.
|
boolean |
hasEncryptedCertificate()
Return true if the response contains an encrypted certificate.
|
org.bouncycastle.asn1.cmp.CertResponse |
toASN1Structure()
Return this object's underlying ASN.1 structure.
|
public CertificateResponse(org.bouncycastle.asn1.cmp.CertResponse certResponse)
public boolean hasEncryptedCertificate()
public CMSEnvelopedData getEncryptedCertificate() throws CMSException
java.lang.IllegalStateException
- if no encrypted certificate is present, or there is an issue with the enveloped data.CMSException
public org.bouncycastle.asn1.cmp.CMPCertificate getCertificate(Recipient recipient) throws CMSException
java.lang.IllegalStateException
- if no plaintext certificate is present.CMSException
public org.bouncycastle.asn1.cmp.CMPCertificate getCertificate() throws CMSException
java.lang.IllegalStateException
- if no plaintext certificate is present.CMSException
public org.bouncycastle.asn1.cmp.CertResponse toASN1Structure()