Class CertificateProperties
java.lang.Object
com.azure.security.keyvault.certificates.models.CertificateProperties
Represents base properties of a certificate.
-
Method Summary
Modifier and TypeMethodDescriptionGet the 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.
-
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 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.
-