CertReqMsg (Bouncy Castle Library 1.52 API Specification)

org.bouncycastle.asn1.crmf

## Class CertReqMsg

- java.lang.Object
- - org.bouncycastle.asn1.ASN1Object
  - - org.bouncycastle.asn1.crmf.CertReqMsg

- All Implemented Interfaces:
    ASN1Encodable, Encodable

      public class CertReqMsg
      extends ASN1Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CertReqMsg(CertRequest certReq, ProofOfPossession pop, AttributeTypeAndValue[] regInfo)` Creates a new CertReqMsg.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `CertRequest` | `getCertReq()`
    `static CertReqMsg` | `getInstance(java.lang.Object o)`
    `ProofOfPossession` | `getPop()` Deprecated. use getPopo
    `ProofOfPossession` | `getPopo()`
    `AttributeTypeAndValue[]` | `getRegInfo()`
    `ASN1Primitive` | `toASN1Primitive()` CertReqMsg ::= SEQUENCE { certReq CertRequest, popo ProofOfPossession OPTIONAL, -- content depends upon key type regInfo SEQUENCE SIZE(1..MAX) OF AttributeTypeAndValue OPTIONAL }

    - ### Methods inherited from class org.bouncycastle.asn1.ASN1Object

      `equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CertReqMsg

          public CertReqMsg(CertRequest certReq,
                    ProofOfPossession pop,
                    AttributeTypeAndValue[] regInfo)

      Creates a new CertReqMsg.
      Parameters:
        `certReq` - CertRequest
        `pop` - may be null
        `regInfo` - may be null

  - ### Method Detail

    - #### getInstance

          public static CertReqMsg getInstance(java.lang.Object o)

    - #### getCertReq

          public CertRequest getCertReq()

    - #### getPop

          public ProofOfPossession getPop()

      Deprecated. use getPopo

    - #### getPopo

          public ProofOfPossession getPopo()

    - #### getRegInfo

          public AttributeTypeAndValue[] getRegInfo()

    - #### toASN1Primitive

          public ASN1Primitive toASN1Primitive()

           CertReqMsg ::= SEQUENCE {
                              certReq   CertRequest,
                              popo       ProofOfPossession  OPTIONAL,
                              -- content depends upon key type
                              regInfo   SEQUENCE SIZE(1..MAX) OF AttributeTypeAndValue OPTIONAL }

      Specified by:
        `toASN1Primitive` in interface `ASN1Encodable`
      Specified by:
        `toASN1Primitive` in class `ASN1Object`
      Returns:
        a basic ASN.1 object representation.