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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected name.neuhalfen.projects.crypto.bouncycastle.openpgp.keys.keyrings.InMemoryKeyring
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Generates a keyring configuration with public keys and the private key.
    This ClassLoader is set upon creation of the object, used to retrieve resources configured by the Ibis application.
    abstract void
    run(InputStream inputStream, OutputStream outputStream)
    Runs the given action (which may be any extensions of this abstract class).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.
    • getConfigurationClassLoader

      public ClassLoader getConfigurationClassLoader()
      Description copied from interface: IScopeProvider
      This ClassLoader is set upon creation of the object, used to retrieve resources configured by the Ibis application.
      Specified by:
      getConfigurationClassLoader in interface IScopeProvider
      Returns:
      returns the ClassLoader created by the ClassLoaderManager.