io.quarkus.vault.runtime.Base64StringDeserializer 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.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