Package com.bld.crypto.serializer
Class EncryptCertificateSerializer<T>
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
com.fasterxml.jackson.databind.ser.std.StdScalarSerializer<T>
com.bld.crypto.serializer.EncryptCertificateSerializer<T>
- Type Parameters:
T- the generic type
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable,com.fasterxml.jackson.databind.jsonschema.SchemaAware,Serializable
- Direct Known Subclasses:
EncryptAesSerializer,EncryptJksSerializer,EncryptPubKeySerializer
public abstract class EncryptCertificateSerializer<T>
extends com.fasterxml.jackson.databind.ser.std.StdScalarSerializer<T>
The Class EncryptCertificateSerializer.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.ObjectMapperThe obj mapper.Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInstantiates a new encrypt certificate serializer.protectedEncryptCertificateSerializer(Class<T> t, com.fasterxml.jackson.databind.ObjectMapper objMapper) Instantiates a new encrypt certificate serializer. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringencryptValue(String word) Encrypt value.voidserialize(T value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) Serialize.Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdScalarSerializer
acceptJsonFormatVisitor, getSchema, serializeWithTypeMethods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrowMethods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Field Details
-
objMapper
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objMapperThe obj mapper.
-
-
Constructor Details
-
EncryptCertificateSerializer
Instantiates a new encrypt certificate serializer.- Parameters:
t- the t
-
EncryptCertificateSerializer
protected EncryptCertificateSerializer(Class<T> t, com.fasterxml.jackson.databind.ObjectMapper objMapper) Instantiates a new encrypt certificate serializer.- Parameters:
t- the tobjMapper- the obj mapper
-
-
Method Details
-
serialize
public void serialize(T value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException Serialize.- Specified by:
serializein classcom.fasterxml.jackson.databind.ser.std.StdSerializer<T>- Parameters:
value- the valuegen- the genprovider- the provider- Throws:
IOException- Signals that an I/O exception has occurred.
-
encryptValue
Encrypt value.- Parameters:
word- the word- Returns:
- the string
-