
com.azure.security.keyvault.certificates.models.CertificateOperation Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.keyvault.certificates.models;
import com.azure.core.implementation.util.ImplUtils;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/**
* A certificate operation is returned in case of long running service requests.
*/
public final class CertificateOperation {
/**
* The certificate id.
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;
/**
* Name of the referenced issuer object or reserved names; for example,
* 'Self' or 'Unknown'.
*/
private String issuerName;
/**
* Type of certificate to be requested from the issuer provider.
*/
private String certificateType;
/**
* Indicates if the certificates generated under this policy should be
* published to certificate transparency logs.
*/
private Boolean certificateTransparency;
/**
* The certificate signing request (CSR) that is being used in the
* certificate operation.
*/
@JsonProperty(value = "csr")
private byte[] csr;
/**
* Indicates if cancellation was requested on the certificate operation.
*/
@JsonProperty(value = "cancellation_requested")
private Boolean cancellationRequested;
/**
* Status of the certificate operation.
*/
@JsonProperty(value = "status")
private String status;
/**
* The status details of the certificate operation.
*/
@JsonProperty(value = "status_details")
private String statusDetails;
/**
* Error encountered, if any, during the certificate operation.
*/
@JsonProperty(value = "error")
private Error error;
/**
* Location which contains the result of the certificate operation.
*/
@JsonProperty(value = "target")
private String target;
/**
* Identifier for the certificate operation.
*/
@JsonProperty(value = "request_id")
private String requestId;
/**
* Get the identifier.
*
* @return the identifier.
*/
public String getId() {
return this.id;
}
/**
* Get the issuer name.
*
* @return the issuer name
*/
public String getIssuerName() {
return this.issuerName;
}
/**
* Get the certificate type.
*
* @return the certificateType
*/
public String getCertificateType() {
return this.certificateType;
}
/**
* Get the certificate transparency status.
*
* @return the certificateTransparency status.
*/
public Boolean getCertificateTransparency() {
return this.certificateTransparency;
}
/**
* Get the csr.
*
* @return the csr.
*/
public byte[] getCsr() {
return ImplUtils.clone(this.csr);
}
/**
* Get the cancellation requested status.
*
* @return the cancellationRequested status.
*/
public Boolean getCancellationRequested() {
return this.cancellationRequested;
}
/**
* Get the status.
*
* @return the status
*/
public String getStatus() {
return this.status;
}
/**
* Get the status details.
*
* @return the status details
*/
public String getStatusDetails() {
return this.statusDetails;
}
/**
* Get the error.
*
* @return the error
*/
public Error getError() {
return this.error;
}
/**
* Get the target.
*
* @return the target
*/
public String getTarget() {
return this.target;
}
/**
* Get the requestId.
*
* @return the requestId
*/
public String getRequestId() {
return this.requestId;
}
@JsonProperty("issuer")
private void unpackIssuerParameters(Map issuerParameters) {
issuerName = (String) issuerParameters.get("name");
certificateType = (String) issuerParameters.get("cty");
certificateTransparency = (Boolean) issuerParameters.get("cert_transparency");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy