Top Description Fields Constructors Methods
org.bouncycastle.asn1.cmp

public Class PKIBody

extends ASN1Object
implements ASN1Choice
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1Choice
Imports
org.bouncycastle.asn1.ASN1Choice, .ASN1Encodable, .ASN1Object, .ASN1Primitive, .ASN1TaggedObject, .DERTaggedObject, org.bouncycastle.asn1.crmf.CertReqMessages, org.bouncycastle.asn1.pkcs.CertificationRequest

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

Modifier and TypeField and Description
private final ASN1Encodable
private final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
private
public
PKIBody(int
one of the TYPE_* constants
type
,
ASN1Encodable
message content
content
)

Creates a new PKIBody.

Method Summary

Modifier and TypeMethod and Description
private static ASN1Encodable
public ASN1Encodable
public static PKIBody
public int
public ASN1Primitive

Returns:

a basic ASN.1 object representation.
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.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.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

bodyback to summary
private final ASN1Encodable body
tagNoback to summary
private final int tagNo
TYPE_CA_KEY_UPDATE_ANNback to summary
public static final int TYPE_CA_KEY_UPDATE_ANN
TYPE_CERT_ANNback to summary
public static final int TYPE_CERT_ANN
TYPE_CERT_CONFIRMback to summary
public static final int TYPE_CERT_CONFIRM
TYPE_CERT_REPback to summary
public static final int TYPE_CERT_REP
TYPE_CERT_REQback to summary
public static final int TYPE_CERT_REQ
TYPE_CONFIRMback to summary
public static final int TYPE_CONFIRM
TYPE_CRL_ANNback to summary
public static final int TYPE_CRL_ANN
TYPE_CROSS_CERT_REPback to summary
public static final int TYPE_CROSS_CERT_REP
TYPE_CROSS_CERT_REQback to summary
public static final int TYPE_CROSS_CERT_REQ
TYPE_ERRORback to summary
public static final int TYPE_ERROR
TYPE_GEN_MSGback to summary
public static final int TYPE_GEN_MSG
TYPE_GEN_REPback to summary
public static final int TYPE_GEN_REP
TYPE_INIT_REPback to summary
public static final int TYPE_INIT_REP
TYPE_INIT_REQback to summary
public static final int TYPE_INIT_REQ
TYPE_KEY_RECOVERY_REPback to summary
public static final int TYPE_KEY_RECOVERY_REP
TYPE_KEY_RECOVERY_REQback to summary
public static final int TYPE_KEY_RECOVERY_REQ
TYPE_KEY_UPDATE_REPback to summary
public static final int TYPE_KEY_UPDATE_REP
TYPE_KEY_UPDATE_REQback to summary
public static final int TYPE_KEY_UPDATE_REQ
TYPE_NESTEDback to summary
public static final int TYPE_NESTED
TYPE_P10_CERT_REQback to summary
public static final int TYPE_P10_CERT_REQ
TYPE_POLL_REPback to summary
public static final int TYPE_POLL_REP
TYPE_POLL_REQback to summary
public static final int TYPE_POLL_REQ
TYPE_POPO_CHALLback to summary
public static final int TYPE_POPO_CHALL
TYPE_POPO_REPback to summary
public static final int TYPE_POPO_REP
TYPE_REVOCATION_ANNback to summary
public static final int TYPE_REVOCATION_ANN
TYPE_REVOCATION_REPback to summary
public static final int TYPE_REVOCATION_REP
TYPE_REVOCATION_REQback to summary
public static final int TYPE_REVOCATION_REQ

Constructor Detail

PKIBodyback to summary
private PKIBody(ASN1TaggedObject tagged)
PKIBodyback to summary
public PKIBody(int type, ASN1Encodable content)

Creates a new PKIBody.

Parameters
type:int

one of the TYPE_* constants

content:ASN1Encodable

message content

Method Detail

getBodyForTypeback to summary
private static ASN1Encodable getBodyForType(int type, ASN1Encodable o)
getContentback to summary
public ASN1Encodable getContent()
getInstanceback to summary
public static PKIBody getInstance(Object o)
getTypeback to summary
public int getType()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.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
}
Returns:ASN1Primitive

a basic ASN.1 object representation.