@ElementType(value=TRANSLATOR) public class SignaturePipe extends FixedForwardPipe implements HasKeystore
Modifier and Type | Class and Description |
---|---|
static class |
SignaturePipe.Action |
Modifier and Type | Field and Description |
---|---|
static String |
ALGORITHM_DEFAULT |
static String |
PARAMETER_SIGNATURE |
parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
SignaturePipe() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
checks for correct configuration of forward
|
PipeRunResult |
doPipe(Message message,
PipeLineSession session)
This is where the action takes place.
|
void |
setAction(SignaturePipe.Action action)
Action to be taken when pipe is executed.
|
void |
setAlgorithm(String algorithm)
The signing algorithm
|
void |
setKeyManagerAlgorithm(String keyManagerAlgorithm)
Key manager algorithm.
|
void |
setKeystore(String string)
Keystore to obtain signing key
|
void |
setKeystoreAlias(String string)
Alias in keystore
|
void |
setKeystoreAliasAuthAlias(String string)
Alias used to obtain keystoreAlias password
|
void |
setKeystoreAliasPassword(String string)
KeystoreAlias password
|
void |
setKeystoreAuthAlias(String string)
Alias used to obtain keystore password
|
void |
setKeystorePassword(String string)
Keystore password
|
void |
setKeystoreType(KeystoreType value)
Type of keystore, can be pkcs12 or pem
|
void |
setProvider(String provider)
Cryptography provider
|
void |
setSignatureBase64(boolean signatureBase64)
if true, the signature is (expected to be) base64 encoded
|
void |
start()
Perform necessary action to start the pipe.
|
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipe
addParameter, consumesSessionVariable, createBean, findForward, getAdapter, getEventSourceName, getForwards, getInSizeStatDummyObject, getOutSizeStatDummyObject, getParameterList, hasSizeStatistics, registerEvent, registerForward, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, stop, throwEvent
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKeyManagerAlgorithm, getKeystore, getKeystoreAlias, getKeystoreAliasAuthAlias, getKeystoreAliasPassword, getKeystoreAuthAlias, getKeystorePassword, getKeystoreType
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
getChompCharSize, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getGetInputFromFixedValue, getGetInputFromSessionKey, getLocker, getSecLogSessionKeys, getStoreResultInSessionKey, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, setPipeLine, throwEvent
getMaxThreads
getName
getName
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
public static final String PARAMETER_SIGNATURE
public static final String ALGORITHM_DEFAULT
public void configure() throws ConfigurationException
FixedForwardPipe
configure
in interface IConfigurable
configure
in interface IPipe
configure
in class FixedForwardPipe
ConfigurationException
public void start() throws PipeStartException
IPipe
IPipe.configure()
method, for each start and stop command of the
adapter.start
in interface IPipe
start
in class AbstractPipe
PipeStartException
public PipeRunResult doPipe(Message message, PipeLineSession session) throws PipeRunException
IPipe
FixedResultPipe
, the Pipe
can schedule the input to be closed at session exit, by calling Message.closeOnCloseOf(PipeLineSession, String)
This allows the previous Pipe to release any resources (e.g. connections) that it might have kept open
until the message was consumed. Doing so avoids connections leaking from pools, while it enables
efficient streaming processing of data while it is being read from a stream.doPipe
in interface IPipe
PipeRunException
public void setAction(SignaturePipe.Action action)
public void setAlgorithm(String algorithm)
public void setProvider(String provider)
public void setSignatureBase64(boolean signatureBase64)
public void setKeystore(String string)
setKeystore
in interface HasKeystore
public void setKeystoreType(KeystoreType value)
setKeystoreType
in interface HasKeystore
public void setKeystoreAuthAlias(String string)
setKeystoreAuthAlias
in interface HasKeystore
public void setKeystorePassword(String string)
setKeystorePassword
in interface HasKeystore
public void setKeystoreAlias(String string)
setKeystoreAlias
in interface HasKeystore
public void setKeystoreAliasAuthAlias(String string)
setKeystoreAliasAuthAlias
in interface HasKeystore
public void setKeystoreAliasPassword(String string)
setKeystoreAliasPassword
in interface HasKeystore
public void setKeyManagerAlgorithm(String keyManagerAlgorithm)
HasKeystore
setKeyManagerAlgorithm
in interface HasKeystore
Copyright © 2023 Frank!Framework. All rights reserved.