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 Summary
Modifier and TypeMethodDescriptionstatic CertificateProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads a JSON stream into aCertificateProperties
.Get the UTC time at which certificate was created.Get the Certificate Expiry time in UTC.getId()
Get the certificate identifier.getName()
Get the certificate name.Get the notBefore UTC time.Gets the number of days a key is retained before being deleted for a soft delete-enabled Key Vault.Get the recovery level of the certificate.getTags()
Get the tags associated with the certificate.Get the UTC time at which certificate was last updated.Get the URL for the Azure KeyVault service.Get the version of the certificate.byte[]
Get the X509 Thumbprint of the certificate.Gets the thumbprint of the certificate as a hex string which can be used to uniquely identify it.Get a value indicating whether the order of certificate chain is to be preserved in the vault.Get the enabled status.setEnabled
(Boolean enabled) Set the enabled status.Set the tags to be associated with the certificate.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
-
Method Details
-
getId
Get the certificate identifier.- Returns:
- The certificate identifier
-
getNotBefore
Get the notBefore UTC time.- Returns:
- The notBefore UTC time.
-
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
Get the Certificate Expiry time in UTC.- Returns:
- The expires UTC time.
-
getCreatedOn
Get the UTC time at which certificate was created.- Returns:
- The created UTC time.
-
getUpdatedOn
Get the UTC time at which certificate was last updated.- Returns:
- The last updated UTC time.
-
getTags
Get the tags associated with the certificate.- Returns:
- The value of the tags.
-
getVaultUrl
Get the URL for the Azure KeyVault service.- Returns:
- The value of the URL for the Azure KeyVault service.
-
setTags
Set the tags to be associated with the certificate.- Parameters:
tags
- The tags to set.- Returns:
- The updated
CertificateProperties
object.
-
getVersion
Get the version of the certificate.- Returns:
- The version of the certificate.
-
getName
Get the certificate name.- Returns:
- The name of the certificate.
-
getRecoveryLevel
Get the recovery level of the certificate.- Returns:
- The recovery level of the certificate.
-
isEnabled
Get the enabled status.- Returns:
- The enabled status.
-
setEnabled
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
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
Get a value indicating whether the order of certificate chain is to be preserved in the vault. The default value isfalse
, which sets the leaf certificate at index 0.- Returns:
- The preserve certificate order status.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CertificateProperties>
- Throws:
IOException
-
fromJson
public static CertificateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads a JSON stream into aCertificateProperties
.- Parameters:
jsonReader
- TheJsonReader
being read.- Returns:
- The
CertificateProperties
that the JSON stream represented, may returnnull
. - Throws:
IOException
- If aCertificateProperties
fails to be read from thejsonReader
.
-