Class OpenPGPImplementation

java.lang.Object
org.bouncycastle.openpgp.api.OpenPGPImplementation
Direct Known Subclasses:
BcOpenPGPImplementation, JcaOpenPGPImplementation

public abstract class OpenPGPImplementation extends Object
Bouncy Castle provides two implementations of OpenPGP operators. The
JCA/JCE
implementation makes use of Java Cryptography Architecture and the Java Cryptography Extension, while
Bc
uses Bouncy Castles Lightweight Cryptography API. The purpose of OpenPGPImplementation is to define a shared interface for instantiating concrete objects of either API. It is advised to define the desired implementation by calling setInstance(OpenPGPImplementation) and acquiring it via getInstance(), as swapping out the entire implementation can then be done by replacing the instance in one single place. This pattern was successfully explored by PGPainless.
  • Constructor Details

    • OpenPGPImplementation

      public OpenPGPImplementation()
  • Method Details