All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.vault.runtime.Base64StringSerializer Maven / Gradle / Ivy

There is a newer version: 2.5.4.Final
Show newest version
package io.quarkus.vault.runtime;

import java.io.IOException;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;

public class Base64StringSerializer extends StdSerializer {

    public Base64StringSerializer() {
        this(null);
    }

    public Base64StringSerializer(Class vc) {
        super(vc);
    }

    @Override
    public void serialize(Base64String base64String, JsonGenerator jgen, SerializerProvider serializerProvider)
            throws IOException {
        jgen.writeString(base64String.getValue());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy