Package org.bouncycastle.cert.cmp
Class GeneralPKIMessage
java.lang.Object
org.bouncycastle.cert.cmp.GeneralPKIMessage
General wrapper for a generic PKIMessage
-
Constructor Summary
ConstructorsConstructorDescriptionGeneralPKIMessage(byte[] encoding) Create a PKIMessage from the passed in bytes.GeneralPKIMessage(org.bouncycastle.asn1.cmp.PKIMessage pkiMessage) Wrap a PKIMessage ASN.1 structure. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.cmp.PKIBodygetBody()org.bouncycastle.asn1.cmp.PKIHeaderbooleanReturn true if this message has protection bits on it.org.bouncycastle.asn1.cmp.PKIMessage
-
Constructor Details
-
GeneralPKIMessage
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.
-
GeneralPKIMessage
public GeneralPKIMessage(org.bouncycastle.asn1.cmp.PKIMessage pkiMessage) Wrap a PKIMessage ASN.1 structure.- Parameters:
pkiMessage- base PKI message.
-
-
Method Details
-
getHeader
public org.bouncycastle.asn1.cmp.PKIHeader getHeader() -
getBody
public org.bouncycastle.asn1.cmp.PKIBody getBody() -
hasProtection
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.
-
toASN1Structure
public org.bouncycastle.asn1.cmp.PKIMessage toASN1Structure()
-