Class GeneralPKIMessage


  • public class GeneralPKIMessage
    extends Object
    General wrapper for a generic PKIMessage
    • Constructor Detail

      • GeneralPKIMessage

        public GeneralPKIMessage​(byte[] encoding)
                          throws IOException
        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 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()