Package org.frankframework.pipes
Class SignaturePipe
java.lang.Object
org.frankframework.core.TransactionAttributes
org.frankframework.pipes.AbstractPipe
org.frankframework.pipes.FixedForwardPipe
org.frankframework.pipes.SignaturePipe
- All Implemented Interfaces:
FrankElement,HasApplicationContext,HasName,HasTransactionAttribute,IConfigurable,IForwardTarget,IPipe,IScopeProvider,IWithParameters,NameAware,HasKeystore,EventThrowing,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.Lifecycle
@Forward(name="failure",
description="verification has failed")
@EnterpriseIntegrationPattern(TRANSLATOR)
public class SignaturePipe
extends FixedForwardPipe
implements HasKeystore
- Specific parameters
- signature the signature to verify
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.frankframework.pipes.AbstractPipe
parameterNamesMustBeUniqueFields inherited from class org.frankframework.core.TransactionAttributes
logFields inherited from interface org.frankframework.core.IPipe
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks for correct configuration of forward.doPipe(Message message, PipeLineSession session) This is where the action takes place.voidsetAction(SignaturePipe.Action action) Action to be taken when pipe is executed.voidsetAlgorithm(String algorithm) The signing algorithmvoidsetKeyManagerAlgorithm(String keyManagerAlgorithm) Key manager algorithm.voidsetKeystore(String string) Keystore to obtain signing keyvoidsetKeystoreAlias(String string) Alias in keystorevoidsetKeystoreAliasAuthAlias(String string) Alias used to obtain keystoreAlias passwordvoidsetKeystoreAliasPassword(String string) KeystoreAlias passwordvoidsetKeystoreAuthAlias(String string) Alias used to obtain keystore passwordvoidsetKeystorePassword(String string) Keystore passwordvoidsetKeystoreType(KeystoreType value) Type of keystore, can be pkcs12 or pemvoidsetProvider(String provider) Cryptography providervoidsetSignatureBase64(boolean signatureBase64) Iftrue, the signature is (expected to be) base64 encodedvoidstart()Perform necessary action to start the pipe.Methods inherited from class org.frankframework.pipes.FixedForwardPipe
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipeMethods inherited from class org.frankframework.pipes.AbstractPipe
addForward, addParameter, consumesSessionVariable, createBean, findForward, getAdapter, getEventSourceName, getForwards, getParameterList, hasRegisteredForward, isRunning, registerEvent, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, sizeStatisticsEnabled, stop, throwEventMethods inherited from class org.frankframework.core.TransactionAttributes
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.encryption.HasKeystore
getKeyManagerAlgorithm, getKeystore, getKeystoreAlias, getKeystoreAliasAuthAlias, getKeystoreAliasPassword, getKeystoreAuthAlias, getKeystorePassword, getKeystoreTypeMethods inherited from interface org.frankframework.core.HasTransactionAttribute
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttributeMethods inherited from interface org.frankframework.core.IForwardTarget
getNameMethods inherited from interface org.frankframework.core.IPipe
getChompCharSize, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getGetInputFromFixedValue, getGetInputFromSessionKey, getHideRegex, getLocker, getLogIntermediaryResults, getMaxThreads, getSecLogSessionKeys, getStoreResultInSessionKey, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, setPipeLine, throwEvent
-
Field Details
-
PARAMETER_SIGNATURE
- See Also:
-
ALGORITHM_DEFAULT
- See Also:
-
-
Constructor Details
-
SignaturePipe
public SignaturePipe()
-
-
Method Details
-
configure
Description copied from class:FixedForwardPipeChecks for correct configuration of forward.- Specified by:
configurein interfaceIConfigurable- Overrides:
configurein classFixedForwardPipe- Throws:
ConfigurationException- in case it was not able to configure the component.
-
start
public void start()Description copied from interface:IPipePerform necessary action to start the pipe. This method is executed after theIConfigurable.configure()method, for each start and stop command of the adapter.- Specified by:
startin interfaceIPipe- Specified by:
startin interfaceorg.springframework.context.Lifecycle- Overrides:
startin classAbstractPipe
-
doPipe
Description copied from interface:IPipeThis is where the action takes place. Pipes may only throw a PipeRunException, to be handled by the caller of this object. Implementations must either consume the message, or pass it on to the next Pipe in the PipeRunResult.- Specified by:
doPipein interfaceIPipe- Throws:
PipeRunException
-
setAction
Action to be taken when pipe is executed.- Default value
- SIGN
-
setAlgorithm
The signing algorithm- Default value
- ALGORITHM_DEFAULT
-
setProvider
Cryptography provider -
setSignatureBase64
public void setSignatureBase64(boolean signatureBase64) Iftrue, the signature is (expected to be) base64 encoded- Default value
- true
-
setKeystore
Keystore to obtain signing key- Specified by:
setKeystorein interfaceHasKeystore
-
setKeystoreType
Type of keystore, can be pkcs12 or pem- Specified by:
setKeystoreTypein interfaceHasKeystore- Default value
- pkcs12
-
setKeystoreAuthAlias
Alias used to obtain keystore password- Specified by:
setKeystoreAuthAliasin interfaceHasKeystore
-
setKeystorePassword
Keystore password- Specified by:
setKeystorePasswordin interfaceHasKeystore
-
setKeystoreAlias
Alias in keystore- Specified by:
setKeystoreAliasin interfaceHasKeystore
-
setKeystoreAliasAuthAlias
Alias used to obtain keystoreAlias password- Specified by:
setKeystoreAliasAuthAliasin interfaceHasKeystore
-
setKeystoreAliasPassword
KeystoreAlias password- Specified by:
setKeystoreAliasPasswordin interfaceHasKeystore
-
setKeyManagerAlgorithm
Description copied from interface:HasKeystoreKey manager algorithm. Can be left empty to use the servers default algorithm- Specified by:
setKeyManagerAlgorithmin interfaceHasKeystore
-