Below is a diagram of the main classes contained in DidiSoft OpenPGP Library for Java
The class PGPLib provides the methods for OpenPGP cryptography and in the simplest scenario will be all that you need.
Before you start your OpenPGP cryptographic project or module you have to decide which one of the two development modes provided by DidiSoft OpenPGP Library for Java to choose.
* The first option is to store your public and private OpenPGP keys in separate files on the disk. This is a fast and simple way of development.
* The second choice is to keep your key pairs in a KeyStore object. The KeyStore file is encrypted and protected by password, so this is a more secure way of development.
Each method the PGPLib class has overloaded versions that support the above two options.
The example programs located in the \Examples folder of the product ZIP file demonstrate both cases.
What’s next
In most of the cases you will probably have an upfront agreement with your partners what kind of OpenPGP files will be exchanged. If this is the case, then you can check the concrete chapter below the Main Functions section.
If on the other hand you have no idea what OpenPGP files you will have to deal with, you can use the inspection API provided by the library and decide what action to take depending on the archive type.