Class AbstractPGPAction

java.lang.Object
org.frankframework.pgp.AbstractPGPAction
All Implemented Interfaces:
IScopeProvider
Direct Known Subclasses:
Decrypt, Encrypt, Sign, Verify

public abstract class AbstractPGPAction extends Object implements IScopeProvider
This is an abstraction of general pgp actions such as encryption, verification, etc. to be used for PGPPipe
Author:
Murat Kaan Meral
  • Field Details

    • keyringConfig

      protected name.neuhalfen.projects.crypto.bouncycastle.openpgp.keys.keyrings.InMemoryKeyring keyringConfig
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      Generates a keyring configuration with public keys and the private key.
      Throws:
      ConfigurationException - When the files do not exist, or unexpected PGP exception has occurred.
    • run

      public abstract void run(InputStream inputStream, OutputStream outputStream) throws Exception
      Runs the given action (which may be any extensions of this abstract class).
      Parameters:
      inputStream - Input for the action.
      outputStream - to which the encrypted/plaintext based on the action is written to.
      Throws:
      Exception - Any exception that can be thrown during the action.