public class GeneralPKIMessage
extends java.lang.Object
Constructor and Description |
---|
GeneralPKIMessage(byte[] encoding)
Create a PKIMessage from the passed in bytes.
|
GeneralPKIMessage(org.bouncycastle.asn1.cmp.PKIMessage pkiMessage)
Wrap a PKIMessage ASN.1 structure.
|
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.asn1.cmp.PKIBody |
getBody() |
org.bouncycastle.asn1.cmp.PKIHeader |
getHeader() |
boolean |
hasProtection()
Return true if this message has protection bits on it.
|
org.bouncycastle.asn1.cmp.PKIMessage |
toASN1Structure() |
public GeneralPKIMessage(byte[] encoding) throws java.io.IOException
encoding
- BER/DER encoding of the PKIMessagejava.io.IOException
- in the event of corrupted data, or an incorrect structure.public GeneralPKIMessage(org.bouncycastle.asn1.cmp.PKIMessage pkiMessage)
pkiMessage
- base PKI message.public org.bouncycastle.asn1.cmp.PKIHeader getHeader()
public org.bouncycastle.asn1.cmp.PKIBody getBody()
public boolean hasProtection()
public org.bouncycastle.asn1.cmp.PKIMessage toASN1Structure()