Class CertificateProperties

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

public class CertificateProperties extends Object implements com.azure.json.JsonSerializable<CertificateProperties>
Represents base properties of a certificate.
  • Method Details

    • getId

      public String getId()
      Get the certificate identifier.
      Returns:
      The certificate identifier
    • getNotBefore

      public OffsetDateTime getNotBefore()
      Get the notBefore UTC time.
      Returns:
      The notBefore UTC time.
    • getRecoverableDays

      public Integer getRecoverableDays()
      Gets the number of days a key is retained before being deleted for a soft delete-enabled Key Vault.
      Returns:
      The recoverable days.
    • getExpiresOn

      public OffsetDateTime getExpiresOn()
      Get the Certificate Expiry time in UTC.
      Returns:
      The expires UTC time.
    • getCreatedOn

      public OffsetDateTime getCreatedOn()
      Get the UTC time at which certificate was created.
      Returns:
      The created UTC time.
    • getUpdatedOn

      public OffsetDateTime getUpdatedOn()
      Get the UTC time at which certificate was last updated.
      Returns:
      The last updated UTC time.
    • getTags

      public Map<String,String> getTags()
      Get the tags associated with the certificate.
      Returns:
      The value of the tags.
    • getVaultUrl

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

      public CertificateProperties setTags(Map<String,String> tags)
      Set the tags to be associated with the certificate.
      Parameters:
      tags - The tags to set.
      Returns:
      The updated CertificateProperties object.
    • getVersion

      public String getVersion()
      Get the version of the certificate.
      Returns:
      The version of the certificate.
    • getName

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

      public String getRecoveryLevel()
      Get the recovery level of the certificate.
      Returns:
      The recovery level of the certificate.
    • isEnabled

      public Boolean isEnabled()
      Get the enabled status.
      Returns:
      The enabled status.
    • setEnabled

      public CertificateProperties setEnabled(Boolean enabled)
      Set the enabled status.
      Parameters:
      enabled - The enabled status to set.
      Returns:
      The updated CertificateProperties object.
    • getX509Thumbprint

      public byte[] getX509Thumbprint()
      Get the X509 Thumbprint of the certificate.
      Returns:
      The x509Thumbprint.
    • getX509ThumbprintAsString

      public String getX509ThumbprintAsString()
      Gets the thumbprint of the certificate as a hex string which can be used to uniquely identify it.
      Returns:
      The thumbprint of the certificate as a hex string.
    • isCertificateOrderPreserved

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

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

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