Package org.bouncycastle.asn1.cmp
Class PKIBody
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cmp.PKIBody
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Choice
,org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
public class PKIBody
extends org.bouncycastle.asn1.ASN1Object
implements org.bouncycastle.asn1.ASN1Choice
PKIBody ::= CHOICE { -- message-specific body elements
ir [0] CertReqMessages, --Initialization Request
ip [1] CertRepMessage, --Initialization Response
cr [2] CertReqMessages, --Certification Request
cp [3] CertRepMessage, --Certification Response
p10cr [4] CertificationRequest, --imported from [PKCS10]
popdecc [5] POPODecKeyChallContent, --pop Challenge
popdecr [6] POPODecKeyRespContent, --pop Response
kur [7] CertReqMessages, --Key Update Request
kup [8] CertRepMessage, --Key Update Response
krr [9] CertReqMessages, --Key Recovery Request
krp [10] KeyRecRepContent, --Key Recovery Response
rr [11] RevReqContent, --Revocation Request
rp [12] RevRepContent, --Revocation Response
ccr [13] CertReqMessages, --Cross-Cert. Request
ccp [14] CertRepMessage, --Cross-Cert. Response
ckuann [15] CAKeyUpdAnnContent, --CA Key Update Ann.
cann [16] CertAnnContent, --Certificate Ann.
rann [17] RevAnnContent, --Revocation Ann.
crlann [18] CRLAnnContent, --CRL Announcement
pkiconf [19] PKIConfirmContent, --Confirmation
nested [20] NestedMessageContent, --Nested Message
genm [21] GenMsgContent, --General Message
genp [22] GenRepContent, --General Response
error [23] ErrorMsgContent, --Error Message
certConf [24] CertConfirmContent, --Certificate confirm
pollReq [25] PollReqContent, --Polling request
pollRep [26] PollRepContent --Polling response
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionPKIBody
(int type, org.bouncycastle.asn1.ASN1Encodable content) Creates a new PKIBody. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1Encodable
static PKIBody
int
getType()
org.bouncycastle.asn1.ASN1Primitive
PKIBody ::= CHOICE { -- message-specific body elements ir [0] CertReqMessages, --Initialization Request ip [1] CertRepMessage, --Initialization Response cr [2] CertReqMessages, --Certification Request cp [3] CertRepMessage, --Certification Response p10cr [4] CertificationRequest, --imported from [PKCS10] popdecc [5] POPODecKeyChallContent, --pop Challenge popdecr [6] POPODecKeyRespContent, --pop Response kur [7] CertReqMessages, --Key Update Request kup [8] CertRepMessage, --Key Update Response krr [9] CertReqMessages, --Key Recovery Request krp [10] KeyRecRepContent, --Key Recovery Response rr [11] RevReqContent, --Revocation Request rp [12] RevRepContent, --Revocation Response ccr [13] CertReqMessages, --Cross-Cert.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Field Details
-
TYPE_INIT_REQ
public static final int TYPE_INIT_REQ- See Also:
-
TYPE_INIT_REP
public static final int TYPE_INIT_REP- See Also:
-
TYPE_CERT_REQ
public static final int TYPE_CERT_REQ- See Also:
-
TYPE_CERT_REP
public static final int TYPE_CERT_REP- See Also:
-
TYPE_P10_CERT_REQ
public static final int TYPE_P10_CERT_REQ- See Also:
-
TYPE_POPO_CHALL
public static final int TYPE_POPO_CHALL- See Also:
-
TYPE_POPO_REP
public static final int TYPE_POPO_REP- See Also:
-
TYPE_KEY_UPDATE_REQ
public static final int TYPE_KEY_UPDATE_REQ- See Also:
-
TYPE_KEY_UPDATE_REP
public static final int TYPE_KEY_UPDATE_REP- See Also:
-
TYPE_KEY_RECOVERY_REQ
public static final int TYPE_KEY_RECOVERY_REQ- See Also:
-
TYPE_KEY_RECOVERY_REP
public static final int TYPE_KEY_RECOVERY_REP- See Also:
-
TYPE_REVOCATION_REQ
public static final int TYPE_REVOCATION_REQ- See Also:
-
TYPE_REVOCATION_REP
public static final int TYPE_REVOCATION_REP- See Also:
-
TYPE_CROSS_CERT_REQ
public static final int TYPE_CROSS_CERT_REQ- See Also:
-
TYPE_CROSS_CERT_REP
public static final int TYPE_CROSS_CERT_REP- See Also:
-
TYPE_CA_KEY_UPDATE_ANN
public static final int TYPE_CA_KEY_UPDATE_ANN- See Also:
-
TYPE_CERT_ANN
public static final int TYPE_CERT_ANN- See Also:
-
TYPE_REVOCATION_ANN
public static final int TYPE_REVOCATION_ANN- See Also:
-
TYPE_CRL_ANN
public static final int TYPE_CRL_ANN- See Also:
-
TYPE_CONFIRM
public static final int TYPE_CONFIRM- See Also:
-
TYPE_NESTED
public static final int TYPE_NESTED- See Also:
-
TYPE_GEN_MSG
public static final int TYPE_GEN_MSG- See Also:
-
TYPE_GEN_REP
public static final int TYPE_GEN_REP- See Also:
-
TYPE_ERROR
public static final int TYPE_ERROR- See Also:
-
TYPE_CERT_CONFIRM
public static final int TYPE_CERT_CONFIRM- See Also:
-
TYPE_POLL_REQ
public static final int TYPE_POLL_REQ- See Also:
-
TYPE_POLL_REP
public static final int TYPE_POLL_REP- See Also:
-
-
Constructor Details
-
PKIBody
public PKIBody(int type, org.bouncycastle.asn1.ASN1Encodable content) Creates a new PKIBody.- Parameters:
type
- one of the TYPE_* constantscontent
- message content
-
-
Method Details
-
getInstance
-
getType
public int getType() -
getContent
public org.bouncycastle.asn1.ASN1Encodable getContent() -
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()PKIBody ::= CHOICE { -- message-specific body elements ir [0] CertReqMessages, --Initialization Request ip [1] CertRepMessage, --Initialization Response cr [2] CertReqMessages, --Certification Request cp [3] CertRepMessage, --Certification Response p10cr [4] CertificationRequest, --imported from [PKCS10] popdecc [5] POPODecKeyChallContent, --pop Challenge popdecr [6] POPODecKeyRespContent, --pop Response kur [7] CertReqMessages, --Key Update Request kup [8] CertRepMessage, --Key Update Response krr [9] CertReqMessages, --Key Recovery Request krp [10] KeyRecRepContent, --Key Recovery Response rr [11] RevReqContent, --Revocation Request rp [12] RevRepContent, --Revocation Response ccr [13] CertReqMessages, --Cross-Cert. Request ccp [14] CertRepMessage, --Cross-Cert. Response ckuann [15] CAKeyUpdAnnContent, --CA Key Update Ann. cann [16] CertAnnContent, --Certificate Ann. rann [17] RevAnnContent, --Revocation Ann. crlann [18] CRLAnnContent, --CRL Announcement pkiconf [19] PKIConfirmContent, --Confirmation nested [20] NestedMessageContent, --Nested Message genm [21] GenMsgContent, --General Message genp [22] GenRepContent, --General Response error [23] ErrorMsgContent, --Error Message certConf [24] CertConfirmContent, --Certificate confirm pollReq [25] PollReqContent, --Polling request pollRep [26] PollRepContent --Polling response }
- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
- Returns:
- a basic ASN.1 object representation.
-