public class

PKIBody

extends ASN1Encodable
implements ASN1Choice
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.cmp.PKIBody

Summary

Constants
int TYPE_CA_KEY_UPDATE_ANN
int TYPE_CERT_ANN
int TYPE_CERT_CONFIRM
int TYPE_CERT_REP
int TYPE_CERT_REQ
int TYPE_CONFIRM
int TYPE_CRL_ANN
int TYPE_CROSS_CERT_REP
int TYPE_CROSS_CERT_REQ
int TYPE_ERROR
int TYPE_GEN_MSG
int TYPE_GEN_REP
int TYPE_INIT_REP
int TYPE_INIT_REQ
int TYPE_KEY_RECOVERY_REP
int TYPE_KEY_RECOVERY_REQ
int TYPE_KEY_UPDATE_REP
int TYPE_KEY_UPDATE_REQ
int TYPE_NESTED
int TYPE_P10_CERT_REQ
int TYPE_POLL_REP
int TYPE_POLL_REQ
int TYPE_POPO_CHALL
int TYPE_POPO_REP
int TYPE_REVOCATION_ANN
int TYPE_REVOCATION_REP
int TYPE_REVOCATION_REQ
[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
PKIBody(int type, ASN1Encodable content)
Creates a new PKIBody.
Public Methods
ASN1Encodable getContent()
static PKIBody getInstance(Object o)
int getType()
DERObject toASN1Object()
 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.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Constants

public static final int TYPE_CA_KEY_UPDATE_ANN

Constant Value: 15 (0x0000000f)

public static final int TYPE_CERT_ANN

Constant Value: 16 (0x00000010)

public static final int TYPE_CERT_CONFIRM

Constant Value: 24 (0x00000018)

public static final int TYPE_CERT_REP

Constant Value: 3 (0x00000003)

public static final int TYPE_CERT_REQ

Constant Value: 2 (0x00000002)

public static final int TYPE_CONFIRM

Constant Value: 19 (0x00000013)

public static final int TYPE_CRL_ANN

Constant Value: 18 (0x00000012)

public static final int TYPE_CROSS_CERT_REP

Constant Value: 14 (0x0000000e)

public static final int TYPE_CROSS_CERT_REQ

Constant Value: 13 (0x0000000d)

public static final int TYPE_ERROR

Constant Value: 23 (0x00000017)

public static final int TYPE_GEN_MSG

Constant Value: 21 (0x00000015)

public static final int TYPE_GEN_REP

Constant Value: 22 (0x00000016)

public static final int TYPE_INIT_REP

Constant Value: 1 (0x00000001)

public static final int TYPE_INIT_REQ

Constant Value: 0 (0x00000000)

public static final int TYPE_KEY_RECOVERY_REP

Constant Value: 10 (0x0000000a)

public static final int TYPE_KEY_RECOVERY_REQ

Constant Value: 9 (0x00000009)

public static final int TYPE_KEY_UPDATE_REP

Constant Value: 8 (0x00000008)

public static final int TYPE_KEY_UPDATE_REQ

Constant Value: 7 (0x00000007)

public static final int TYPE_NESTED

Constant Value: 20 (0x00000014)

public static final int TYPE_P10_CERT_REQ

Constant Value: 4 (0x00000004)

public static final int TYPE_POLL_REP

Constant Value: 26 (0x0000001a)

public static final int TYPE_POLL_REQ

Constant Value: 25 (0x00000019)

public static final int TYPE_POPO_CHALL

Constant Value: 5 (0x00000005)

public static final int TYPE_POPO_REP

Constant Value: 6 (0x00000006)

public static final int TYPE_REVOCATION_ANN

Constant Value: 17 (0x00000011)

public static final int TYPE_REVOCATION_REP

Constant Value: 12 (0x0000000c)

public static final int TYPE_REVOCATION_REQ

Constant Value: 11 (0x0000000b)

Public Constructors

public PKIBody (int type, ASN1Encodable content)

Creates a new PKIBody.

Parameters
type one of the TYPE_* constants
content message content

Public Methods

public ASN1Encodable getContent ()

public static PKIBody getInstance (Object o)

public int getType ()

public DERObject toASN1Object ()

 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
  • a basic ASN.1 object representation.