/**
  * 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.
  *
  * @return true if message has protection, false otherwise.
  */
 public boolean hasProtection() {
   return pkiMessage.getHeader().getProtectionAlg() != null;
 }
 public PKIHeader getHeader() {
   return pkiMessage.getHeader();
 }