Class Base64UrlSerializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

    public final class Base64UrlSerializer
    extends com.fasterxml.jackson.databind.JsonSerializer<Base64Url>
    Custom serializer for serializing Byte[] objects into Base64 strings.
    • Nested Class Summary

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

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static com.fasterxml.jackson.databind.module.SimpleModule getModule()
      Gets a module wrapping this serializer as an adapter for the Jackson ObjectMapper.
      void serialize​(Base64Url value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)  
      • Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

        acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
    • Constructor Detail

      • Base64UrlSerializer

        public Base64UrlSerializer()
    • Method Detail

      • getModule

        public static com.fasterxml.jackson.databind.module.SimpleModule getModule()
        Gets a module wrapping this serializer as an adapter for the Jackson ObjectMapper.
        Returns:
        a simple module to be plugged onto Jackson ObjectMapper.
      • serialize

        public void serialize​(Base64Url value,
                              com.fasterxml.jackson.core.JsonGenerator jgen,
                              com.fasterxml.jackson.databind.SerializerProvider provider)
                       throws IOException
        Specified by:
        serialize in class com.fasterxml.jackson.databind.JsonSerializer<Base64Url>
        Throws:
        IOException