public class PKIBody extends java.lang.Object implements ASN1Type
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
conf [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
}
| Modifier and Type | Field and Description |
|---|---|
static byte |
cann
PKIBody type 'cann'.
|
static byte |
ccp
PKIBody type 'ccp'.
|
static byte |
ccr
PKIBody type 'ccr'.
|
static byte |
certconf
PKIBody type 'certConf'.
|
static byte |
ckuann
PKIBody type 'ckuann'.
|
static byte |
conf
PKIBody type 'conf'.
|
static byte |
cp
PKIBody type 'cp'.
|
static byte |
cr
PKIBody type 'cr'.
|
static byte |
crlann
PKIBody type 'crlann'.
|
static byte |
error
PKIBody type 'error'.
|
static byte |
genm
PKIBody type 'genm'.
|
static byte |
genp
PKIBody type 'genp'.
|
static byte |
ip
PKIBody type 'ip'.
|
static byte |
ir
PKIBody type 'ir'.
|
static byte |
krp
PKIBody type 'krp'.
|
static byte |
krr
PKIBody type 'krr'.
|
static byte |
kup
PKIBody type 'kup'.
|
static byte |
kur
PKIBody type 'kur'.
|
static byte |
nested
PKIBody type 'nested'.
|
static byte |
p10cr
PKIBody type 'p10cr'.
|
static byte |
pollrep
PKIBody type 'pollrep'.
|
static byte |
pollreq
PKIBody type 'pollreq'.
|
static byte |
popdecc
PKIBody type 'popdecc'.
|
static byte |
popdecr
PKIBody type 'popdecr'.
|
static byte |
rann
PKIBody type 'rann'.
|
static byte |
rp
PKIBody type 'rp'.
|
static byte |
rr
PKIBody type 'rr'.
|
static java.lang.String[] |
typeName
Names of each PKIBody type.
|
| Constructor and Description |
|---|
PKIBody(ASN1Object obj)
Creates a new
PKIBody object from an ASN1Object. |
PKIBody(int type,
java.lang.Object value)
Creates a new
PKIBody object with the specified type and
value. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an PKIBody structure from an
ASN1Object. |
int |
getType()
Returns the type of PKIBody.
|
java.lang.Object |
getValue()
Returns the value of PKIBody.
|
ASN1Object |
toASN1Object()
Encodes this
PKIBody object as an ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
PKIBody object. |
public static final byte ir
public static final byte ip
public static final byte cr
public static final byte cp
public static final byte p10cr
public static final byte popdecc
public static final byte popdecr
public static final byte kur
public static final byte kup
public static final byte krr
public static final byte krp
public static final byte rr
public static final byte rp
public static final byte ccr
public static final byte ccp
public static final byte ckuann
public static final byte cann
public static final byte rann
public static final byte crlann
public static final byte conf
public static final byte nested
public static final byte genm
public static final byte genp
public static final byte error
public static final byte certconf
public static final byte pollreq
public static final byte pollrep
public static final java.lang.String[] typeName
public PKIBody(int type,
java.lang.Object value)
PKIBody object with the specified type and
value. Currently, only the following combinations of type and value are
supported:
CertReqMsg [] that contains at
least one elementCertRepMessageCertReqMsg [] that contains at
least one elementCertRepMessageCertReqMsg [] that contains at
least one elementCertRepMessageCertReqMsg [] that contains at
least one elementKeyRecRepContentCertReqMsg [] that contains at
least one elementnullInfoTypeAndValue []InfoTypeAndValue []ErrorMsgContentCertConfirmContenttype - the type of PKIBodyvalue - the value of PKIBodypublic PKIBody(ASN1Object obj) throws CodingException
PKIBody object from an ASN1Object.obj - the ASN.1 representation of an PKIBody structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic int getType()
public java.lang.Object getValue()
CertReqMsg [] that contains at
least one elementCertRepMessageCertReqMsg [] that contains at
least one elementCertRepMessageCertReqMsg [] that contains at
least one elementCertRepMessageCertReqMsg [] that contains at
least one elementKeyRecRepContentCertReqMsg [] that contains at
least one elementnullInfoTypeAndValue []InfoTypeAndValue []ErrorMsgContentCertConfirmContentThe value is returned as an Object, which can then cast to the appropriate object-type based on the type of PKIBody.
public void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of a PKIBody structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
PKIBody object as an ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
PKIBody object.toString in class java.lang.Object