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

com.safelayer.rap.json.CertificatesKeysPendingMapDeserialize Maven / Gradle / Ivy

Go to download

The PKI Connector RESTAPI is a library that helps developing new PKI Connectors for TrustedX

The newest version!

package com.safelayer.rap.json;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.safelayer.rap.api.model.issuance.IssuanceKeysPendingResponse.CertificatesKeysPending;
import com.safelayer.rap.json.model.issuance.JsonIssuanceKeysPendingResponse.JsonCertificatesKeysPending;

public class CertificatesKeysPendingMapDeserialize extends JsonDeserializer> {

	@Override
	public Map deserialize(JsonParser jsonParser, DeserializationContext ctxt)
			throws IOException, JsonProcessingException {

		Map value = jsonParser.readValueAs(new TypeReference>() {
		});

		Map result = new HashMap();
		result.putAll(value);

		return result;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy