Package org.frankframework.pgp
Class AbstractPGPAction
java.lang.Object
org.frankframework.pgp.AbstractPGPAction
- All Implemented Interfaces:
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
Modifier and TypeFieldDescriptionprotected name.neuhalfen.projects.crypto.bouncycastle.openpgp.keys.keyrings.InMemoryKeyring
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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).
-
Field Details
-
keyringConfig
protected name.neuhalfen.projects.crypto.bouncycastle.openpgp.keys.keyrings.InMemoryKeyring keyringConfig
-
-
Method Details
-
configure
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
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
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 interfaceIScopeProvider
- Returns:
- returns the ClassLoader created by the
ClassLoaderManager
.
-