Package org.bouncycastle.asn1.cmp
Class PKIMessage
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cmp.PKIMessage
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
public class PKIMessage
extends org.bouncycastle.asn1.ASN1Object
PKIMessage ::= SEQUENCE {
header PKIHeader,
body PKIBody,
protection [0] PKIProtection OPTIONAL,
extraCerts [1] SEQUENCE SIZE (1..MAX) OF CMPCertificate
OPTIONAL
}
-
Constructor Summary
ConstructorDescriptionPKIMessage
(PKIHeader header, PKIBody body) PKIMessage
(PKIHeader header, PKIBody body, org.bouncycastle.asn1.ASN1BitString protection) PKIMessage
(PKIHeader header, PKIBody body, org.bouncycastle.asn1.ASN1BitString protection, CMPCertificate[] extraCerts) Creates a new PKIMessage. -
Method Summary
Modifier and TypeMethodDescriptiongetBody()
static PKIMessage
org.bouncycastle.asn1.ASN1BitString
org.bouncycastle.asn1.ASN1Primitive
PKIMessage ::= SEQUENCE { header PKIHeader, body PKIBody, protection [0] PKIProtection OPTIONAL, extraCerts [1] SEQUENCE SIZE (1..MAX) OF CMPCertificate OPTIONAL }Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
PKIMessage
public PKIMessage(PKIHeader header, PKIBody body, org.bouncycastle.asn1.ASN1BitString protection, CMPCertificate[] extraCerts) Creates a new PKIMessage.- Parameters:
header
- message headerbody
- message bodyprotection
- message protection (may be null)extraCerts
- extra certificates (may be null)
-
PKIMessage
-
PKIMessage
-
-
Method Details
-
getInstance
-
getHeader
-
getBody
-
getProtection
public org.bouncycastle.asn1.ASN1BitString getProtection() -
getExtraCerts
-
toASN1Primitive
public org.bouncycastle.asn1.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 interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
- Returns:
- a basic ASN.1 object representation.
-