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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CertificateOperation
fromJson
(com.azure.json.JsonReader jsonReader) Reads a JSON stream into aCertificateOperation
.Get the cancellation requested status.Get the certificate type.byte[]
getCsr()
Get the csr.getError()
Get the error.getId()
Get the identifier.Get the issuer name.getName()
Get the certificate name.Get the requestId.Get the status.Get the status details.Get the target.Get the URL for the Azure KeyVault service.Get a value indicating whether the order of the certificate chain is to be preserved in the vault.boolean
Get the certificate transparency status.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CertificateOperation
public CertificateOperation()Creates an instance ofCertificateOperation
.
-
-
Method Details
-
getId
Get the identifier.- Returns:
- the identifier.
-
getIssuerName
Get the issuer name.- Returns:
- the issuer name
-
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
Get the cancellation requested status.- Returns:
- the cancellationRequested status.
-
getStatus
Get the status.- Returns:
- the status
-
getStatusDetails
Get the status details.- Returns:
- the status details
-
getError
Get the error.- Returns:
- the error
-
getTarget
Get the target.- Returns:
- the target
-
getRequestId
Get the requestId.- Returns:
- the requestId
-
getVaultUrl
Get the URL for the Azure KeyVault service.- Returns:
- the value of the URL for the Azure KeyVault service.
-
isCertificateOrderPreserved
Get a value indicating whether the order of the certificate chain is to be preserved in the vault. The default value isfalse
, 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
Get the certificate name.- Returns:
- the name of the certificate.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CertificateOperation>
- Throws:
IOException
-
fromJson
public static CertificateOperation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads a JSON stream into aCertificateOperation
.- Parameters:
jsonReader
- TheJsonReader
being read.- Returns:
- The
CertificateOperation
that the JSON stream represented, may return null. - Throws:
IOException
- If aCertificateOperation
fails to be read from thejsonReader
.
-