Class CryptoFormatter<T>

  • All Implemented Interfaces:
    org.springframework.format.Formatter<T>, org.springframework.format.Parser<T>, org.springframework.format.Printer<T>
    Direct Known Subclasses:
    CryptoAesFormatter, CryptoJksFormatter, CryptoPubKeyFormatter

    public abstract class CryptoFormatter<T>
    extends Object
    implements org.springframework.format.Formatter<T>
    • Constructor Detail

      • CryptoFormatter

        public CryptoFormatter​(com.fasterxml.jackson.databind.ObjectMapper objMapper,
                               Class<T> fieldType)
    • Method Detail

      • print

        public String print​(T value,
                            Locale locale)
        Specified by:
        print in interface org.springframework.format.Printer<T>
      • encryptValue

        protected abstract String encryptValue​(String word)
      • decrypt

        protected abstract String decrypt​(String word)