io.quarkus.vault.runtime.Base64StringSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-vault-model Show documentation
Show all versions of quarkus-vault-model Show documentation
Hashicorp Vault API model classes
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