Class MetadataHashingService

    • Constructor Detail

      • MetadataHashingService

        public MetadataHashingService()
      • MetadataHashingService

        public MetadataHashingService​(java.lang.String regexp)
      • MetadataHashingService

        public MetadataHashingService​(java.lang.String regexp,
                                      java.lang.String hash,
                                      ByteTranslator translator)
    • Method Detail

      • reformat

        public java.lang.String reformat​(java.lang.String s,
                                         java.lang.String charEncoding)
                                  throws java.lang.Exception
        Description copied from interface: MetadataReformatter
        Reformat a metadata value
        Parameters:
        s - the string to reformat
        charEncoding - the charset of the message
        Returns:
        the replacment string.
        Throws:
        java.lang.Exception
      • getHashAlgorithm

        public final java.lang.String getHashAlgorithm()
      • setHashAlgorithm

        public final void setHashAlgorithm​(java.lang.String hashAlg)
      • setByteTranslator

        public final void setByteTranslator​(ByteTranslator translator)
        Specify how to translate the resulting byte array from the hash into a String.
        Parameters:
        translator - the translator;