Class PKIResponseBuilder

java.lang.Object
org.bouncycastle.cmc.PKIResponseBuilder

public class PKIResponseBuilder extends Object
Builder for an unsigned Full PKI Response (RFC 5272 / RFC 7030 4.2.3 / 4.4.2): a CMS SignedData with no SignerInfos and no certificates whose encapsulated content is an id-cct-PKIResponse PKIResponse SEQUENCE. The product is delivered as a SimplePKIResponse, whose structured accessors expose the embedded PKIResponse content.
  • Constructor Details

    • PKIResponseBuilder

      public PKIResponseBuilder()
  • Method Details

    • addControlAttribute

      public PKIResponseBuilder addControlAttribute(org.bouncycastle.asn1.cmc.TaggedAttribute attr)
    • addStatusInfoV2

      public PKIResponseBuilder addStatusInfoV2(org.bouncycastle.asn1.cmc.BodyPartID bodyPartID, org.bouncycastle.asn1.cmc.CMCStatusInfoV2 statusInfo)
      Convenience for the EST server-generated error case: wrap the supplied CMCStatusInfoV2 in a TaggedAttribute keyed by id-cmc-statusInfoV2 and append it to the controlSequence.
    • addCmsContent

      public PKIResponseBuilder addCmsContent(org.bouncycastle.asn1.cmc.TaggedContentInfo cmsContent)
    • addOtherMsg

      public PKIResponseBuilder addOtherMsg(org.bouncycastle.asn1.cmc.OtherMsg otherMsg)
    • build

      public SimplePKIResponse build() throws CMCException
      Throws:
      CMCException