Package com.bld.crypto.aes.formatter
Class CryptoAesFormatter<T>
java.lang.Object
com.bld.crypto.formatter.CryptoFormatter<T>
com.bld.crypto.aes.formatter.CryptoAesFormatter<T>
- Type Parameters:
T- the generic type
- All Implemented Interfaces:
org.springframework.format.Formatter<T>,org.springframework.format.Parser<T>,org.springframework.format.Printer<T>
The Class CryptoAesFormatter.
-
Constructor Summary
ConstructorsConstructorDescriptionCryptoAesFormatter(com.fasterxml.jackson.databind.ObjectMapper objMapper, Class<T> fieldType, CryptoAes cryptoAes, CryptoAesUtils cryptoAesUtils) Instantiates a new crypto aes formatter. -
Method Summary
Methods inherited from class com.bld.crypto.formatter.CryptoFormatter
parse, print
-
Constructor Details
-
CryptoAesFormatter
public CryptoAesFormatter(com.fasterxml.jackson.databind.ObjectMapper objMapper, Class<T> fieldType, CryptoAes cryptoAes, CryptoAesUtils cryptoAesUtils) Instantiates a new crypto aes formatter.- Parameters:
objMapper- the obj mapperfieldType- the field typecryptoAes- the crypto aescryptoAesUtils- the crypto aes utils
-
-
Method Details
-
encryptValue
Encrypt value.- Specified by:
encryptValuein classCryptoFormatter<T>- Parameters:
word- the word- Returns:
- the string
-
decrypt
Decrypt.- Specified by:
decryptin classCryptoFormatter<T>- Parameters:
word- the word- Returns:
- the string
-