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

com.github.nagyesta.lowkeyvault.model.json.util.CertificateLifetimeActionSerializer Maven / Gradle / Ivy

The newest version!
package com.github.nagyesta.lowkeyvault.model.json.util;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.github.nagyesta.lowkeyvault.service.certificate.CertificateLifetimeActionActivity;

import java.io.IOException;

public class CertificateLifetimeActionSerializer extends JsonSerializer {

    @Override
    public void serialize(final CertificateLifetimeActionActivity value,
                          final JsonGenerator generator,
                          final SerializerProvider provider) throws IOException {
        generator.writeStartObject();
        generator.writeStringField("action_type", value.getValue());
        generator.writeEndObject();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy