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 CertificatePropertiesfromJson(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.Get the enabled status.setEnabled(Boolean enabled) Set the enabled status.Set the tags to be associated with the certificate.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter)
-
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 CertificateProperties object itself.
-
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 recoveryLevel 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 CertificateProperties object itself.
-
getX509Thumbprint
public byte[] getX509Thumbprint()Get the X509 Thumbprint of the certificate.- Returns:
- the x509Thumbprint.
-
toJson
- Specified by:
toJsonin 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- TheJsonReaderbeing read.- Returns:
- The
CertificatePropertiesthat the JSON stream represented, may return null. - Throws:
IOException- If aCertificatePropertiesfails to be read from thejsonReader.
-