Package org.bouncycastle.cmc
Class SimplePKIResponse
java.lang.Object
org.bouncycastle.cmc.SimplePKIResponse
- All Implemented Interfaces:
Encodable
Carrier for a Simple PKI Response.
A Simple PKI Response is defined in RFC 5272 as a CMS SignedData object with no EncapsulatedContentInfo and no SignerInfos attached.
-
Constructor Summary
ConstructorsConstructorDescriptionSimplePKIResponse(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. -
Method Summary
Modifier and TypeMethodDescriptionReturn any X.509 certificate objects in this SimplePKIResponse structure as a Store of X509CertificateHolder objects.getCRLs()Return any X.509 CRL objects in this SimplePKIResponse structure as a Store of X509CRLHolder objects.byte[]return the ASN.1 encoded representation of this object.
-
Constructor Details
-
SimplePKIResponse
Create a SimplePKIResponse from the passed in bytes.- Parameters:
responseEncoding- BER/DER encoding of the certificate.- Throws:
CMCException- in the event of corrupted data, or an incorrect structure.
-
SimplePKIResponse
Create a SimplePKIResponse from the passed in ASN.1 structure.- Parameters:
signedData- a ContentInfo containing a SignedData.- Throws:
CMCException
-
-
Method Details
-
getCertificates
Return any X.509 certificate objects in this SimplePKIResponse structure as a Store of X509CertificateHolder objects.- Returns:
- a Store of X509CertificateHolder objects.
-
getCRLs
Return any X.509 CRL objects in this SimplePKIResponse structure as a Store of X509CRLHolder objects.- Returns:
- a Store of X509CRLHolder objects.
-
getEncoded
return the ASN.1 encoded representation of this object.- Specified by:
getEncodedin interfaceEncodable- Returns:
- a byte array representing the encoding.
- Throws:
IOException- if an issue arises generation the encoding.
-