Package com.bld.crypto.pubkey.formatter
Class CryptoPubKeyFormatter<T>
java.lang.Object
com.bld.crypto.formatter.CryptoFormatter<T>
com.bld.crypto.pubkey.formatter.CryptoPubKeyFormatter<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 CryptoPubKeyFormatter.
-
Constructor Summary
ConstructorsConstructorDescriptionCryptoPubKeyFormatter(com.fasterxml.jackson.databind.ObjectMapper objMapper, Class<T> fieldType, CryptoPubKey cryptoPubKey, CryptoPublicKeyUtils cryptoPublicKeyUtils) Instantiates a new crypto pub key formatter. -
Method Summary
Methods inherited from class com.bld.crypto.formatter.CryptoFormatter
parse, print
-
Constructor Details
-
CryptoPubKeyFormatter
public CryptoPubKeyFormatter(com.fasterxml.jackson.databind.ObjectMapper objMapper, Class<T> fieldType, CryptoPubKey cryptoPubKey, CryptoPublicKeyUtils cryptoPublicKeyUtils) Instantiates a new crypto pub key formatter.- Parameters:
objMapper- the obj mapperfieldType- the field typecryptoPubKey- the crypto pub keycryptoPublicKeyUtils- the crypto public key 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
-