Class ActivationKey.RedactingSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<ActivationKey>
com.eqixiac.equinix.core.model.multicloud.ActivationKey.RedactingSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
Enclosing interface:
ActivationKey

public static final class ActivationKey.RedactingSerializer extends com.fasterxml.jackson.databind.JsonSerializer<ActivationKey>
The Jackson serializer of every variant: it writes the empty object {} and nothing else, so no key material reaches JSON produced by any ObjectMapper, including one with SerializationFeature.FAIL_ON_EMPTY_BEANS enabled (the default).
Author:
ianjones
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    serialize(ActivationKey value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers)
     

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    acceptJsonFormatVisitor, getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties

    Methods inherited from class Object

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

    • RedactingSerializer

      public RedactingSerializer()
  • Method Details

    • serialize

      public void serialize(ActivationKey value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException
      Specified by:
      serialize in class com.fasterxml.jackson.databind.JsonSerializer<ActivationKey>
      Throws:
      IOException
    • handledType

      public Class<ActivationKey> handledType()
      Overrides:
      handledType in class com.fasterxml.jackson.databind.JsonSerializer<ActivationKey>