public class SimplePKIResponse
extends java.lang.Object
implements org.bouncycastle.util.Encodable
A Simple PKI Response is defined in RFC 5272 as a CMS SignedData object with no EncapsulatedContentInfo and no SignerInfos attached.
| Constructor and Description |
|---|
SimplePKIResponse(byte[] responseEncoding)
Create a SimplePKIResponse from the passed in bytes.
|
SimplePKIResponse(org.bouncycastle.asn1.cms.ContentInfo signedData)
Create a SimplePKIResponse from the passed in ASN.1 structure.
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.util.Store<X509CertificateHolder> |
getCertificates()
Return any X.509 certificate objects in this SimplePKIResponse structure as a Store of X509CertificateHolder objects.
|
org.bouncycastle.util.Store<X509CRLHolder> |
getCRLs()
Return any X.509 CRL objects in this SimplePKIResponse structure as a Store of X509CRLHolder objects.
|
byte[] |
getEncoded()
return the ASN.1 encoded representation of this object.
|
public SimplePKIResponse(byte[] responseEncoding)
throws CMCException
responseEncoding - BER/DER encoding of the certificate.CMCException - in the event of corrupted data, or an incorrect structure.public SimplePKIResponse(org.bouncycastle.asn1.cms.ContentInfo signedData)
throws CMCException
signedData - a ContentInfo containing a SignedData.CMCExceptionpublic org.bouncycastle.util.Store<X509CertificateHolder> getCertificates()
public org.bouncycastle.util.Store<X509CRLHolder> getCRLs()
public byte[] getEncoded()
throws java.io.IOException
getEncoded in interface org.bouncycastle.util.Encodablejava.io.IOException