Package com.bld.crypto.formatter
Class CryptoFormatter<T>
- java.lang.Object
-
- com.bld.crypto.formatter.CryptoFormatter<T>
-
- All Implemented Interfaces:
org.springframework.format.Formatter<T>,org.springframework.format.Parser<T>,org.springframework.format.Printer<T>
- Direct Known Subclasses:
CryptoAesFormatter,CryptoJksFormatter,CryptoPubKeyFormatter
public abstract class CryptoFormatter<T> extends Object implements org.springframework.format.Formatter<T>
-
-
Constructor Summary
Constructors Constructor Description CryptoFormatter(com.fasterxml.jackson.databind.ObjectMapper objMapper, Class<T> fieldType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Stringdecrypt(String word)protected abstract StringencryptValue(String word)Tparse(String text, Locale locale)Stringprint(T value, Locale locale)
-
-
-
Method Detail
-
print
public String print(T value, Locale locale)
- Specified by:
printin interfaceorg.springframework.format.Printer<T>
-
parse
public T parse(String text, Locale locale) throws ParseException
- Specified by:
parsein interfaceorg.springframework.format.Parser<T>- Throws:
ParseException
-
-