Class EncryptPubKeySerializer<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>
com.bld.crypto.pubkey.serializer.EncryptPubKeySerializer<T>
- Type Parameters:
T- the generic type
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware, com.fasterxml.jackson.databind.ser.ContextualSerializer, Serializable
public class EncryptPubKeySerializer<T>
extends EncryptCertificateSerializer<T>
implements com.fasterxml.jackson.databind.ser.ContextualSerializer
The Class EncryptPubKeySerializer.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None -
Field Summary
Fields inherited from class EncryptCertificateSerializer
objMapperModifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.ObjectMapperJacksonObjectMapperused to serialise POJO values to JSON before encryption.Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonSerializer<?> createContextual(com.fasterxml.jackson.databind.SerializerProvider prov, com.fasterxml.jackson.databind.BeanProperty property) Creates the contextual.protected StringencryptValue(String word) Encrypt value.Methods inherited from class EncryptCertificateSerializer
serializeModifier and TypeMethodDescriptionvoidserialize(T value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) Serialises and encrypts the value, writing the result as a JSON string (or JSON array when the value is aCollectionor array).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
-
Constructor Details
-
EncryptPubKeySerializer
public EncryptPubKeySerializer()Instantiates a new encrypt pub key serializer.
-
-
Method Details
-
createContextual
public com.fasterxml.jackson.databind.JsonSerializer<?> createContextual(com.fasterxml.jackson.databind.SerializerProvider prov, com.fasterxml.jackson.databind.BeanProperty property) throws com.fasterxml.jackson.databind.JsonMappingException Creates the contextual.- Specified by:
createContextualin interfacecom.fasterxml.jackson.databind.ser.ContextualSerializer- Parameters:
prov- the provproperty- the property- Returns:
- the json serializer
- Throws:
com.fasterxml.jackson.databind.JsonMappingException- the json mapping exception
-
encryptValue
Encrypt value.- Specified by:
encryptValuein classEncryptCertificateSerializer<T>- Parameters:
word- the word- Returns:
- the string
-