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>
public class CryptoJksFormatter<T> extends CryptoFormatter<T>
The Class CryptoJksFormatter.
-
-
Constructor Summary
Constructors Constructor Description CryptoJksFormatter(CryptoJks crypto, CryptoJksUtils cryptoJksUtils, com.fasterxml.jackson.databind.ObjectMapper objMapper, Class<T> fieldType)Instantiates a new crypto jks 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
-
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 Detail
-
decrypt
protected String decrypt(String word)
Decrypt.- Specified by:
decryptin classCryptoFormatter<T>- Parameters:
word- the word- Returns:
- the string
-
encryptValue
protected String encryptValue(String word)
Encrypt value.- Specified by:
encryptValuein classCryptoFormatter<T>- Parameters:
word- the word- Returns:
- the string
-
-