
com.safelayer.rap.json.model.issuance.JsonIssuancePopPendingResponse 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.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.safelayer.rap.api.model.issuance.IssuancePopPendingResponse;
import com.safelayer.rap.json.PopKeyMapDeserialize;
import com.safelayer.rap.json.PopKeyMapSerialize;
public class JsonIssuancePopPendingResponse extends JsonIssuanceResponse implements IssuancePopPendingResponse{
static public class JsonKey implements Key{
@JsonProperty
JsonProofOfPossession pop;
@JsonCreator
public JsonKey() {
}
public JsonKey(Key other) {
this.pop = new JsonProofOfPossession(other.getPop());
}
@Override
public ProofOfPossession getPop() {
return pop;
}
}
@JsonProperty
@JsonDeserialize(using=PopKeyMapDeserialize.class)
@JsonSerialize(using=PopKeyMapSerialize.class)
private Map tasks;
@JsonCreator
public JsonIssuancePopPendingResponse() {
super(null);
}
public JsonIssuancePopPendingResponse(IssuancePopPendingResponse other) {
super(other.getState());
this.tasks = other.getTasks();
}
@JsonIgnore
public Map getTasks() {
return tasks;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy