Class PKIMessage

    • Constructor Detail

      • PKIMessage

        public PKIMessage​(PKIHeader header,
                          PKIBody body,
                          DERBitString protection,
                          CMPCertificate[] extraCerts)
        Creates a new PKIMessage.
        Parameters:
        header - message header
        body - message body
        protection - message protection (may be null)
        extraCerts - extra certificates (may be null)
    • Method Detail

      • getInstance

        public static PKIMessage getInstance​(java.lang.Object o)
      • getBody

        public PKIBody getBody()
      • toASN1Primitive

        public ASN1Primitive toASN1Primitive()
         PKIMessage ::= SEQUENCE {
                          header           PKIHeader,
                          body             PKIBody,
                          protection   [0] PKIProtection OPTIONAL,
                          extraCerts   [1] SEQUENCE SIZE (1..MAX) OF CMPCertificate
                                                                             OPTIONAL
         }
         
        Specified by:
        toASN1Primitive in interface ASN1Encodable
        Specified by:
        toASN1Primitive in class ASN1Object
        Returns:
        a basic ASN.1 object representation.