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

    Fields
    Modifier and Type
    Field
    Description
    protected com.fasterxml.jackson.databind.ObjectMapper
    The obj mapper.

    Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer

    _handledType
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Instantiates a new encrypt certificate serializer.
    protected
    EncryptCertificateSerializer(Class<T> t, com.fasterxml.jackson.databind.ObjectMapper objMapper)
    Instantiates a new encrypt certificate serializer.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract String
    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, withIgnoredProperties

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • objMapper

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

    • 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 Details

    • 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