title: Create bouncycastle PGPSecretKey with an email
body: <p>I need to create a public key for a unix machine to send me encrypted data.</p>
  
  <p>What I do is use the following constructor for creating the PGPSecreyKey.</p>
  
  <pre><code>PGPSecretKey secretKey = new PGPSecretKey(PGPSignature.DEFAULT_CERTIFICATION, PGPPublicKey.RSA_GENERAL, publicKey, privateKey, new Date(),
              "Test test@mail.com", PGPEncryptedData.CAST5, passPhrase, null, null, new SecureRandom(), "BC");
  </code></pre>
  
  <p>When opened with Kleopatra (to check my certificate) I see Name: "Test test@mail.com" and Email: "".</p>
  
  <p>How can I create a PGP key with both a name and email (and comment if possible).</p>
  
  <p>Thanks in advance!</p>