Top Description Fields Constructors Methods
org.bouncycastle.cert.cmp

public Class GeneralPKIMessage

extends Object
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.asn1.ASN1Primitive, org.bouncycastle.asn1.cmp.PKIBody, .PKIHeader, .PKIMessage, org.bouncycastle.cert.CertIOException

General wrapper for a generic PKIMessage

Field Summary

Modifier and TypeField and Description
private final PKIMessage

Constructor Summary

AccessConstructor and Description
public
GeneralPKIMessage(byte[]
BER/DER encoding of the PKIMessage
encoding
)

Create a PKIMessage from the passed in bytes.

public
GeneralPKIMessage(PKIMessage
base PKI message.
pkiMessage
)

Wrap a PKIMessage ASN.1 structure.

Method Summary

Modifier and TypeMethod and Description
public PKIBody
public PKIHeader
public boolean

Returns:

true if message has protection, false otherwise.
hasProtection
()

Return true if this message has protection bits on it.

private static PKIMessage
parseBytes(byte[] encoding)

public PKIMessage
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pkiMessageback to summary
private final PKIMessage pkiMessage

Constructor Detail

GeneralPKIMessageback to summary
public GeneralPKIMessage(byte[] encoding) throws IOException

Create a PKIMessage from the passed in bytes.

Parameters
encoding:byte[]

BER/DER encoding of the PKIMessage

Exceptions
IOException:
in the event of corrupted data, or an incorrect structure.
GeneralPKIMessageback to summary
public GeneralPKIMessage(PKIMessage pkiMessage)

Wrap a PKIMessage ASN.1 structure.

Parameters
pkiMessage:PKIMessage

base PKI message.

Method Detail

getBodyback to summary
public PKIBody getBody()
getHeaderback to summary
public PKIHeader getHeader()
hasProtectionback to summary
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:boolean

true if message has protection, false otherwise.

parseBytesback to summary
private static PKIMessage parseBytes(byte[] encoding) throws IOException
toASN1Structureback to summary
public PKIMessage toASN1Structure()