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
FieldsModifier 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.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
Methods inherited from interface org.frankframework.core.IScopeProvider
getConfigurationClassLoader
-
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.
-