Class BcOpenPGPKeyGenerator


public class BcOpenPGPKeyGenerator extends OpenPGPKeyGenerator
Bouncy Castle implementation of OpenPGPKeyGenerator.
  • Constructor Details

    • BcOpenPGPKeyGenerator

      public BcOpenPGPKeyGenerator(int version) throws PGPException
      Create a new key generator for OpenPGP v6 keys.
      Parameters:
      version - key version
      Throws:
      PGPException
    • BcOpenPGPKeyGenerator

      public BcOpenPGPKeyGenerator(int version, Date creationTime) throws PGPException
      Create a new key generator for OpenPGP v6 keys. The key creation time will be set to creationTime
      Parameters:
      version - key version
      creationTime - creation time of the generated OpenPGP key
      Throws:
      PGPException
    • BcOpenPGPKeyGenerator

      public BcOpenPGPKeyGenerator(int version, Date creationTime, boolean aeadProtection) throws PGPException
      Create a new OpenPGP key generator for v6 keys.
      Parameters:
      version - key version
      creationTime - creation time of the key and signatures
      aeadProtection - whether the key shall be protected using AEAD. If false, the key is protected using CFB.
      Throws:
      PGPException