Package com.bld.crypto.jks.formatter
Class CryptoJksFormatter<T>
java.lang.Object
com.bld.crypto.formatter.CryptoFormatter<T>
com.bld.crypto.jks.formatter.CryptoJksFormatter<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 CryptoJksFormatter.
-
Constructor Summary
ConstructorsConstructorDescriptionCryptoJksFormatter(CryptoJks crypto, CryptoJksUtils cryptoJksUtils, com.fasterxml.jackson.databind.ObjectMapper objMapper, Class<T> fieldType) Instantiates a new crypto jks formatter. -
Method Summary
Methods inherited from class com.bld.crypto.formatter.CryptoFormatter
parse, print
-
Constructor Details
-
CryptoJksFormatter
public CryptoJksFormatter(CryptoJks crypto, CryptoJksUtils cryptoJksUtils, com.fasterxml.jackson.databind.ObjectMapper objMapper, Class<T> fieldType) Instantiates a new crypto jks formatter.- Parameters:
crypto- the cryptocryptoJksUtils- the crypto jks utilsobjMapper- the obj mapperfieldType- the field type
-
-
Method Details
-
decrypt
Decrypt.- Specified by:
decryptin classCryptoFormatter<T>- Parameters:
word- the word- Returns:
- the string
-
encryptValue
Encrypt value.- Specified by:
encryptValuein classCryptoFormatter<T>- Parameters:
word- the word- Returns:
- the string
-