Class PayloadHashingService

    • Constructor Detail

      • PayloadHashingService

        public PayloadHashingService()
      • PayloadHashingService

        public PayloadHashingService​(java.lang.String hash,
                                     java.lang.String metadataKey)
    • Method Detail

      • doService

        public void doService​(AdaptrisMessage msg)
                       throws ServiceException
        Description copied from interface: Service

        Apply the service to the message.

        Parameters:
        msg - the AdaptrisMessage to process
        Throws:
        ServiceException - wrapping any underlying Exceptions
      • getHashAlgorithm

        public java.lang.String getHashAlgorithm()
      • setHashAlgorithm

        public void setHashAlgorithm​(java.lang.String hashAlgorithm)
        Set the hashing algorithm to use.
        Parameters:
        hashAlgorithm - the algorithm, for example SHA256
      • getMetadataKey

        public java.lang.String getMetadataKey()
      • setMetadataKey

        public void setMetadataKey​(java.lang.String metadataKey)
        Set the metadata key against which the one way hash is stored.
        Parameters:
        metadataKey - the metadata key
      • setByteTranslator

        public void setByteTranslator​(ByteTranslator t)