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>
public class CryptoAesFormatter<T> extends CryptoFormatter<T>
The Class CryptoAesFormatter.
-
-
Constructor Summary
Constructors Constructor Description CryptoAesFormatter(com.fasterxml.jackson.databind.ObjectMapper objMapper, Class<T> fieldType, CryptoAes cryptoAes, CryptoAesUtils cryptoAesUtils)Instantiates a new crypto aes formatter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringdecrypt(String word)Decrypt.protected StringencryptValue(String word)Encrypt value.-
Methods inherited from class com.bld.crypto.formatter.CryptoFormatter
parse, print
-
-
-
-
Constructor Detail
-
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 Detail
-
encryptValue
protected String encryptValue(String word)
Encrypt value.- Specified by:
encryptValuein classCryptoFormatter<T>- Parameters:
word- the word- Returns:
- the string
-
decrypt
protected String decrypt(String word)
Decrypt.- Specified by:
decryptin classCryptoFormatter<T>- Parameters:
word- the word- Returns:
- the string
-
-