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>
public class CryptoPubKeyFormatter<T> extends CryptoFormatter<T>
The Class CryptoPubKeyFormatter.
-
-
Constructor Summary
Constructors Constructor Description CryptoPubKeyFormatter(com.fasterxml.jackson.databind.ObjectMapper objMapper, Class<T> fieldType, CryptoPubKey cryptoPubKey, CryptoPublicKeyUtils cryptoPublicKeyUtils)Instantiates a new crypto pub key 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
-
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 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
-
-