title: Convert java.security.PublicKey into bouncy castle PGPPublicKey
body: <p>I am trying to encrypt a string using bouncy castle. The library I am using to retrieve the public key for the encryption returns it as a java.security.PublicKey object. How do I convert it into a PGPPublicKey object so that I can use it to encrypt the file.</p>