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
  • Field Details

  • Constructor Details

    • SignaturePipe

      public SignaturePipe()
  • Method Details

    • 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 PipeRunResult doPipe(Message message, 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
    • setKeystore

      public void setKeystore(String string)
      Keystore to obtain signing key
      Specified by:
      setKeystore in interface HasKeystore
    • setKeystoreType

      public void setKeystoreType(KeystoreType value)
      Type of keystore, can be pkcs12 or pem
      Specified by:
      setKeystoreType in interface HasKeystore
      Default value
      pkcs12
    • setKeystoreAuthAlias

      public void setKeystoreAuthAlias(String string)
      Alias used to obtain keystore password
      Specified by:
      setKeystoreAuthAlias in interface HasKeystore
    • setKeystorePassword

      public void setKeystorePassword(String string)
      Keystore password
      Specified by:
      setKeystorePassword in interface HasKeystore
    • setKeystoreAlias

      public void setKeystoreAlias(String string)
      Alias in keystore
      Specified by:
      setKeystoreAlias in interface HasKeystore
    • setKeystoreAliasAuthAlias

      public void setKeystoreAliasAuthAlias(String string)
      Alias used to obtain keystoreAlias password
      Specified by:
      setKeystoreAliasAuthAlias in interface HasKeystore
    • setKeystoreAliasPassword

      public void setKeystoreAliasPassword(String string)
      KeystoreAlias password
      Specified by:
      setKeystoreAliasPassword in interface HasKeystore
    • setKeyManagerAlgorithm

      public void setKeyManagerAlgorithm(String keyManagerAlgorithm)
      Description copied from interface: HasKeystore
      Key manager algorithm. Can be left empty to use the servers default algorithm
      Specified by:
      setKeyManagerAlgorithm in interface HasKeystore