Class CertificateOperation

java.lang.Object
com.azure.security.keyvault.certificates.models.CertificateOperation
All Implemented Interfaces:
com.azure.json.JsonSerializable<CertificateOperation>

public final class CertificateOperation extends Object implements com.azure.json.JsonSerializable<CertificateOperation>
A certificate operation is returned in case of long-running service requests.
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Get the identifier.
      Returns:
      the identifier.
    • getIssuerName

      public String getIssuerName()
      Get the issuer name.
      Returns:
      the issuer name
    • getCertificateType

      public String getCertificateType()
      Get the certificate type.
      Returns:
      the certificateType
    • isCertificateTransparent

      public boolean isCertificateTransparent()
      Get the certificate transparency status.
      Returns:
      the certificateTransparency status.
    • getCsr

      public byte[] getCsr()
      Get the csr.
      Returns:
      the csr.
    • getCancellationRequested

      public Boolean getCancellationRequested()
      Get the cancellation requested status.
      Returns:
      the cancellationRequested status.
    • getStatus

      public String getStatus()
      Get the status.
      Returns:
      the status
    • getStatusDetails

      public String getStatusDetails()
      Get the status details.
      Returns:
      the status details
    • getError

      public CertificateOperationError getError()
      Get the error.
      Returns:
      the error
    • getTarget

      public String getTarget()
      Get the target.
      Returns:
      the target
    • getRequestId

      public String getRequestId()
      Get the requestId.
      Returns:
      the requestId
    • getVaultUrl

      public String getVaultUrl()
      Get the URL for the Azure KeyVault service.
      Returns:
      the value of the URL for the Azure KeyVault service.
    • isCertificateOrderPreserved

      public Boolean isCertificateOrderPreserved()
      Get a value indicating whether the order of the certificate chain is to be preserved in the vault. The default value is false, which sets the leaf certificate at index 0.
      Returns:
      A value indicating whether the order of the certificate chain is to be preserved in the vault.
    • getName

      public String getName()
      Get the certificate name.
      Returns:
      the name of the certificate.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CertificateOperation>
      Throws:
      IOException
    • fromJson

      public static CertificateOperation fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads a JSON stream into a CertificateOperation.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      The CertificateOperation that the JSON stream represented, may return null.
      Throws:
      IOException - If a CertificateOperation fails to be read from the jsonReader.