Class SimplePKIResponse

java.lang.Object
org.bouncycastle.cmc.SimplePKIResponse
All Implemented Interfaces:
org.bouncycastle.util.Encodable

public class SimplePKIResponse extends Object implements org.bouncycastle.util.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

    Constructors
    Constructor
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.util.Store<X509CertificateHolder>
    Return any X.509 certificate objects in this SimplePKIResponse structure as a Store of X509CertificateHolder objects.
    org.bouncycastle.util.Store<X509CRLHolder>
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SimplePKIResponse

      public SimplePKIResponse(byte[] responseEncoding) throws CMCException
      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

      public SimplePKIResponse(org.bouncycastle.asn1.cms.ContentInfo signedData) throws CMCException
      Create a SimplePKIResponse from the passed in ASN.1 structure.
      Parameters:
      signedData - a ContentInfo containing a SignedData.
      Throws:
      CMCException
  • Method Details

    • getCertificates

      public org.bouncycastle.util.Store<X509CertificateHolder> getCertificates()
      Return any X.509 certificate objects in this SimplePKIResponse structure as a Store of X509CertificateHolder objects.
      Returns:
      a Store of X509CertificateHolder objects.
    • getCRLs

      public org.bouncycastle.util.Store<X509CRLHolder> getCRLs()
      Return any X.509 CRL objects in this SimplePKIResponse structure as a Store of X509CRLHolder objects.
      Returns:
      a Store of X509CRLHolder objects.
    • getEncoded

      public byte[] getEncoded() throws IOException
      return the ASN.1 encoded representation of this object.
      Specified by:
      getEncoded in interface org.bouncycastle.util.Encodable
      Throws:
      IOException