Class 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
  • Constructor Details

    • SignaturePipe

      public SignaturePipe()
  • Method Details

    • setKeystoreConfiguration

      public void setKeystoreConfiguration(KeystoreConfiguration keystoreConfiguration)
      Description copied from interface: HasKeystore
      Set the KeystoreConfiguration object
      Specified by:
      setKeystoreConfiguration in interface HasKeystore
    • configure

      public void configure() throws ConfigurationException
      Description copied from class: FixedForwardPipe
      Checks for correct configuration of forward.
      Specified by:
      configure in interface IConfigurable
      Overrides:
      configure in class FixedForwardPipe
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • start

      public void start()
      Description copied from interface: IPipe
      Perform necessary action to start the pipe. This method is executed after the IConfigurable.configure() method, for each start and stop command of the adapter.
      Specified by:
      start in interface IPipe
      Specified by:
      start in interface org.springframework.context.Lifecycle
      Overrides:
      start in class AbstractPipe
    • doPipe

      public @NonNull PipeRunResult doPipe(@NonNull Message message, @NonNull PipeLineSession session) throws PipeRunException
      Description copied from interface: IPipe
      This 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:
      doPipe in interface IPipe
      Throws:
      PipeRunException
    • setAction

      public void setAction(SignaturePipe.Action action)
      Action to be taken when pipe is executed.
      Default value
      SIGN
    • setAlgorithm

      public void setAlgorithm(String algorithm)
      The signing algorithm
      Default value
      ALGORITHM_DEFAULT
    • setProvider

      public void setProvider(String provider)
      Cryptography provider
    • setSignatureBase64

      public void setSignatureBase64(boolean signatureBase64)
      If true, the signature is (expected to be) base64 encoded
      Default value
      true