Can I do this with your APIs?
Arnold Morein <[email protected]> Wed, 16 Jan 2019 19:55:43 -0600
| Newsgroups | gmane.comp.encryption.bouncy-castle.devel |
|---|---|
| Message-ID | <[email protected]> |
I want to store my clients' and my public keys in a database table in a clob field in base64 format, as exported from the GPG keychain. My goal is to avoid creating a GPG keychain on the servers where the WAR app will run and having to access the chain in the file system. What I need to know is: Given an input steam from said string/clob, can I instantiate a PGPPublicKey with just this information? And then given a newly created virtual PGPPublicKeyRingCollection containing just one key can be used in encrypting and decrypting. Can anyone point me at specific examples or a list of Classes I should look at using? Thanks in advance!