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

io.quarkus.vault.runtime.Base64StringDeserializer 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.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;

public class Base64StringDeserializer extends StdDeserializer {

    public Base64StringDeserializer() {
        this(null);
    }

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

    @Override
    public Base64String deserialize(JsonParser jsonParser, DeserializationContext deserializationContext)
            throws IOException {
        return new Base64String(jsonParser.getText());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy