Class PGPKeyEncryptionMethodGenerator

    • Constructor Detail

      • PGPKeyEncryptionMethodGenerator

        public PGPKeyEncryptionMethodGenerator()
    • Method Detail

      • generate

        public abstract ContainedPacket generate​(int encAlgorithm,
                                                 byte[] sessionInfo)
                                          throws PGPException
        Generates a packet encoding the details of this encryption method.
        Parameters:
        encAlgorithm - the encryption algorithm being used
        sessionInfo - session data generated by the encrypted data generator.
        Returns:
        a packet encoding the provided information and the configuration of this instance.
        Throws:
        PGPException - if an error occurs constructing the packet.