Package org.bouncycastle.openpgp.api


package org.bouncycastle.openpgp.api
The
api
package contains a high-level OpenPGP API layer on top of the
openpgp
mid-level API. It is tailored to provide a modern OpenPGP experience, following the guidance from rfc9580 ("OpenPGP v6"), while also being interoperable with rfc4880 ("OpenPGP v4").

From an architectural point of view, the hierarchy of the individual layers is as follows:

  • api
    specifies a high-level API using mid-level implementations from
    openpgp
    . This layer strives to be easy to use, hard to misuse and secure by default.
  • openpgp
    defines a powerful, flexible, but quite verbose API using packet definitions from
    bcpg
    .
  • bcpg
    implements serialization / deserialization of OpenPGP packets. It does not contain any business logic.