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

com.safelayer.rap.json.model.issuance.JsonPkiPendingResponse 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.model.issuance;

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.safelayer.rap.api.model.issuance.CertificatesInstallationPendingResponse;
import com.safelayer.rap.api.model.issuance.PkiPendingResponse;
import com.safelayer.rap.json.CertificatesInstallationPendingMapDeserialize;
import com.safelayer.rap.json.CertificatesInstallationPendingMapSerialize;

import java.security.cert.X509Certificate;
import java.util.Map;


public class JsonPkiPendingResponse extends JsonIssuanceResponse implements PkiPendingResponse{

	@JsonProperty(value = "pki_info")
	private Map pkiInfo;

	@JsonCreator
	public JsonPkiPendingResponse() {
		super(null);
	}


	public JsonPkiPendingResponse(PkiPendingResponse other) {
		super(other.getState());
		this.pkiInfo = other.getPkiInfo();
	}
	
	@Override
	@JsonAnyGetter
	public Map getPkiInfo() {
		return pkiInfo;
	}
	
	@JsonAnySetter
	public void putPkiInfo(String key, Object value) {
		pkiInfo.put(key, value);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy