Class PKIBody

    • Constructor Detail

      • PKIBody

        public PKIBody​(int type,
                       ASN1Encodable content)
        Creates a new PKIBody.
        Parameters:
        type - one of the TYPE_* constants
        content - message content
    • Method Detail

      • getInstance

        public static PKIBody getInstance​(java.lang.Object o)
      • getType

        public int getType()
      • toASN1Primitive

        public 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 interface ASN1Encodable
        Specified by:
        toASN1Primitive in class ASN1Object
        Returns:
        a basic ASN.1 object representation.