Package org.bouncycastle.cert.cmp
Class GeneralPKIMessage
- java.lang.Object
-
- org.bouncycastle.cert.cmp.GeneralPKIMessage
-
public class GeneralPKIMessage extends java.lang.ObjectGeneral wrapper for a generic PKIMessage
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.cmp.PKIBodygetBody()org.bouncycastle.asn1.cmp.PKIHeadergetHeader()booleanhasProtection()Return true if this message has protection bits on it.org.bouncycastle.asn1.cmp.PKIMessagetoASN1Structure()
-
-
-
Constructor Detail
-
GeneralPKIMessage
public GeneralPKIMessage(byte[] encoding) throws java.io.IOExceptionCreate a PKIMessage from the passed in bytes.- Parameters:
encoding- BER/DER encoding of the PKIMessage- Throws:
java.io.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 Detail
-
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()
-
-