Bouncy Castle Cryptography Library 1.46

org.bouncycastle.asn1.cmp
Class PKIMessage

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by org.bouncycastle.asn1.cmp.PKIMessage
All Implemented Interfaces:
DEREncodable

public class PKIMessage
extends ASN1Encodable


Field Summary
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
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.
 
Method Summary
 PKIBody getBody()
           
 CMPCertificate[] getExtraCerts()
           
 PKIHeader getHeader()
           
static PKIMessage getInstance(java.lang.Object o)
           
 DERBitString getProtection()
           
 DERObject toASN1Object()
           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.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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)

PKIMessage

public PKIMessage(PKIHeader header,
                  PKIBody body,
                  DERBitString protection)

PKIMessage

public PKIMessage(PKIHeader header,
                  PKIBody body)
Method Detail

getInstance

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

getHeader

public PKIHeader getHeader()

getBody

public PKIBody getBody()

getProtection

public DERBitString getProtection()

getExtraCerts

public CMPCertificate[] getExtraCerts()

toASN1Object

public DERObject toASN1Object()
 PKIMessage ::= SEQUENCE {
                  header           PKIHeader,
                  body             PKIBody,
                  protection   [0] PKIProtection OPTIONAL,
                  extraCerts   [1] SEQUENCE SIZE (1..MAX) OF CMPCertificate
                                                                     OPTIONAL
 }
 

Specified by:
toASN1Object in class ASN1Encodable
Returns:
a basic ASN.1 object representation.

Bouncy Castle Cryptography Library 1.46