com.safelayer.rap.json.model.issuance.JsonCertificatesPutKeysRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pki-connector-restapi Show documentation
Show all versions of pki-connector-restapi Show documentation
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 java.security.PublicKey;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.safelayer.rap.api.model.issuance.IssuancePutKeysRequest;
/**
* @version $Revision$
*/
public class JsonCertificatesPutKeysRequest extends JsonCertificatesPutRequest implements IssuancePutKeysRequest{
@JsonProperty
private byte[] state;
@JsonProperty(value = "keys")
private Map keys;
@JsonCreator
public JsonCertificatesPutKeysRequest() {
}
public JsonCertificatesPutKeysRequest(IssuancePutKeysRequest other) {
this.state = other.getState();
this.keys = other.getKeys();
}
@Override
@JsonIgnore
public byte[] getState() {
return state;
}
@Override
@JsonIgnore
public Map getKeys() {
return keys;
}
}