public class PKIMessage extends ASN1Object
Modifier and Type | Field and Description |
---|---|
private PKIBody |
body |
private ASN1Sequence |
extraCerts |
private PKIHeader |
header |
private DERBitString |
protection |
Modifier | Constructor and Description |
---|---|
private |
PKIMessage(ASN1Sequence seq) |
|
PKIMessage(PKIHeader header,
PKIBody body) |
|
PKIMessage(PKIHeader header,
PKIBody body,
DERBitString protection) |
|
PKIMessage(PKIHeader header,
PKIBody body,
DERBitString protection,
CMPCertificate[] extraCerts)
Creates a new PKIMessage.
|
Modifier and Type | Method and Description |
---|---|
private void |
addOptional(ASN1EncodableVector v,
int tagNo,
ASN1Encodable obj) |
PKIBody |
getBody() |
CMPCertificate[] |
getExtraCerts() |
PKIHeader |
getHeader() |
static PKIMessage |
getInstance(java.lang.Object o) |
DERBitString |
getProtection() |
ASN1Primitive |
toASN1Primitive()
PKIMessage ::= SEQUENCE {
header PKIHeader,
body PKIBody,
protection [0] PKIProtection OPTIONAL,
extraCerts [1] SEQUENCE SIZE (1..MAX) OF CMPCertificate
OPTIONAL
}
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
private DERBitString protection
private ASN1Sequence extraCerts
private PKIMessage(ASN1Sequence seq)
public PKIMessage(PKIHeader header, PKIBody body, DERBitString protection, CMPCertificate[] extraCerts)
header
- message headerbody
- message bodyprotection
- message protection (may be null)extraCerts
- extra certificates (may be null)public PKIMessage(PKIHeader header, PKIBody body, DERBitString protection)
public PKIMessage(PKIHeader header, PKIBody body)
public static PKIMessage getInstance(java.lang.Object o)
public DERBitString getProtection()
public CMPCertificate[] getExtraCerts()
public ASN1Primitive toASN1Primitive()
PKIMessage ::= SEQUENCE { header PKIHeader, body PKIBody, protection [0] PKIProtection OPTIONAL, extraCerts [1] SEQUENCE SIZE (1..MAX) OF CMPCertificate OPTIONAL }
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
private void addOptional(ASN1EncodableVector v, int tagNo, ASN1Encodable obj)