public class

GeneralPKIMessage

extends Object
java.lang.Object
   ↳ org.bouncycastle.cert.cmp.GeneralPKIMessage

Class Overview

General wrapper for a generic PKIMessage

Summary

Public Constructors
GeneralPKIMessage(byte[] encoding)
Create a PKIMessage from the passed in bytes.
GeneralPKIMessage(PKIMessage pkiMessage)
Wrap a PKIMessage ASN.1 structure.
Public Methods
PKIBody getBody()
PKIHeader getHeader()
boolean hasProtection()
Return true if this message has protection bits on it.
PKIMessage toASN1Structure()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GeneralPKIMessage (byte[] encoding)

Create a PKIMessage from the passed in bytes.

Parameters
encoding BER/DER encoding of the PKIMessage
Throws
IOException in the event of corrupted data, or an incorrect structure.

public GeneralPKIMessage (PKIMessage pkiMessage)

Wrap a PKIMessage ASN.1 structure.

Parameters
pkiMessage base PKI message.

Public Methods

public PKIBody getBody ()

public PKIHeader getHeader ()

public boolean hasProtection ()

Return true if this message has protection bits on it. A return value of true indicates the message can be used to construct a ProtectedPKIMessage.

Returns
  • true if message has protection, false otherwise.

public PKIMessage toASN1Structure ()