Class 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:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

        com.fasterxml.jackson.databind.JsonSerializer.None
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.fasterxml.jackson.databind.ObjectMapper objMapper
      The obj mapper.
      • Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer

        _handledType
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract String encryptValue​(String word)
      Encrypt value.
      void serialize​(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, serializeWithType
      • Methods 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, wrapAndThrow
      • Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

        getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId
    • Field Detail

      • objMapper

        @Autowired
        protected com.fasterxml.jackson.databind.ObjectMapper objMapper
        The obj mapper.
    • Constructor Detail

      • EncryptCertificateSerializer

        protected EncryptCertificateSerializer​(Class<T> t)
        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 t
        objMapper - the obj mapper
    • Method Detail

      • serialize

        public void serialize​(T value,
                              com.fasterxml.jackson.core.JsonGenerator gen,
                              com.fasterxml.jackson.databind.SerializerProvider provider)
                       throws IOException
        Serialize.
        Specified by:
        serialize in class com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
        Parameters:
        value - the value
        gen - the gen
        provider - the provider
        Throws:
        IOException - Signals that an I/O exception has occurred.
      • encryptValue

        protected abstract String encryptValue​(String word)
        Encrypt value.
        Parameters:
        word - the word
        Returns:
        the string