Package org.bouncycastle.cmc
Class PKIResponseBuilder
java.lang.Object
org.bouncycastle.cmc.PKIResponseBuilder
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCmsContent(org.bouncycastle.asn1.cmc.TaggedContentInfo cmsContent) addControlAttribute(org.bouncycastle.asn1.cmc.TaggedAttribute attr) addOtherMsg(org.bouncycastle.asn1.cmc.OtherMsg otherMsg) 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.build()
-
Constructor Details
-
PKIResponseBuilder
public PKIResponseBuilder()
-
-
Method Details
-
addControlAttribute
-
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
-
addOtherMsg
-
build
- Throws:
CMCException
-